The Sonderbund War (German: Sonderbundskrieg, French: Guerre du Sonderbund, Italian: Guerra del Sonderbund) of November 1847 was a civil war in Switzerland, then still a relatively loose confederacy of cantons. It ensued after seven Catholic cantons formed the Sonderbund ("separate alliance") in 1845 to protect their interests against a centralization of power. The war concluded with the defeat of the Sonderbund. It resulted in the emergence of Switzerland as a federal state, concluding the period of political "restoration and regeneration" in Switzerland.
The Sonderbund consisted of the cantons of Lucerne, Fribourg, Valais, Uri, Schwyz, Unterwalden and Zug, all predominantly Catholic and governed by conservative administrations. The cantons of Ticino and Solothurn, also predominantly Catholic but governed by liberal administrations, did not join the alliance.