From May 1682, when Louis XIV moved the court and government permanently to Versailles, until his death in September 1715, Versailles was the unofficial capital of the kingdom of France. For the next seven years, during the "Régence" of Philippe d'Orléans, the royal court of the young King Louis XV was the first in Paris, while the Regent governed from his Parisian residence, the Palais-Royal. Versailles was again the unofficial capital of France from June 1722, when Louis XV returned to Versailles, until October 1789, when a Parisian mob forced Louis XVI and the royal family to move to Paris. Versailles again became the unofficial capital of France from March 1871, when Adolphe Thiers' government took refuge in Versailles, fleeing the insurrection of the Paris Commune, until November 1879, when the newly elected government and parliament returned to Paris. During the various periods when government affairs were conducted from Versailles, Paris remained the official capital of France.