A new government, the Directory, took the place of the Convention. It moved its headquarters to the Luxembourg Palace and limited the autonomy of Paris. When the authority of the Directory was challenged by a royalist uprising on 13 Vendémiaire, Year IV (5 October 1795), the Directory called upon a young general, Napoléon Bonaparte, for help. Bonaparte used cannon and grapeshot to clear the streets of demonstrators. On 18 Brumaire, Year VIII (9 November 1799), he organised a coup d'état that overthrew the Directory and replaced it by the Consulate with Bonaparte as First Consul. This event marked the end of the French Revolution and opened the way to the First French Empire.