The Act of Mediation (French: Acte de Médiation) was issued by Napoleon Bonaparte, First Consul of the French Republic on 19 February 1803 to abolish the Helvetic Republic, which had existed since the invasion of Switzerland by French troops in 1798, and replace it with the Swiss Confederation. After the withdrawal of French troops in July 1802, the Republic collapsed (in the Stecklikrieg civil war). The Act of Mediation was Napoleon's attempt at a compromise between the Ancien Régime and a republic. This intermediary stage of Swiss history lasted until the Restoration of 1815. The Act also destroyed the statehood of Tarasp and gave it to Graubunden.