The court = the people who lived at or regularly visited the king’s palace and were close to him. They included nobles, officials and servants.
The nobility = rich and powerful people who owned land and had high social status. Louis XIV wanted to keep the nobles under his control.
Many nobles lived at Versailles, where they competed for the king’s attention and favour.
This helped Louis XIV control the nobility and show that he was the centre of power.