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.
Louis XIV abandoned Versailles and moved to the Louvre.