With the French invasion of 1798, the republic fell and was assigned to the canton of Waldstätten during the time of the Helvetic Republic. The mediation constitution decreed by Napoleon Bonaparte attached the village to the canton of Schwyz. After the end of Napoleon's rule, the inhabitants again proclaimed the Republic of Gersau in 1814, which was recognized by the old umbrella towns. Based on the provisions of the Congress of Vienna and the Federal Treaty of 1815, the canton of Schwyz strove to incorporate the 23.7 square kilometer republic located between the southern slope of the Rigi and the northern shore of Lake Lucerne. This was achieved in 1817 with the approval of the Diet. On January 1, 1818, the republic was dissolved; their area today forms the Gersau district.