When Louis XIV moved his court to Versailles, he abandoned the Louvre to artists, sculptors, and other squatters.
Louis XIV left the Louvre and relocated to Versailles.