King Louis XIV made Versailles the de-facto capital of France when he moved his courts to the Versailles Palace.

While Paris remained the official capital, the relocation of the king’s government essentially made Versailles the heart of France until 1789. During these hundred or so years, Versailles was constantly improved upon by the monarchy.

Source