 Only Bern put up an effective resistance, but after its defeat in the March Battle of Grauholz it capitulated.The canton of Bern was divided into the canton of Oberland (with Thun as its capital) and the canton of Léman (with Lausanne as its capital).The Helvetic Republic was proclaimed on 12 April 1798 as "one and indivisible", abolishing cantonal sovereignty and feudal rights and reducing the cantons to administrative districts.