The act abolished the previous Helvetic Republic, which had existed since the invasion of Switzerland by French troops in March 1798. After the withdrawal of French troops in July 1802, the Republic collapsed ("Stecklikrieg"). 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.