He and his mother were forced to flee the city twice, in 1649 and 1651, to the royal château at Saint-Germain-en-Laye, until the army could retake control of Paris. As a result of the Fronde, Louis XIV had a profound lifelong distrust of Paris. He moved his Paris residence from the Palais-Royal to the more secure Louvre and then, in 1671, he moved the royal residence out of the city to Versailles and came into Paris as seldom as possible.[65]