Border history

How was Switzerland formed? From medieval mountain communities to a modern confederation

Switzerland is one of the most unusual countries in Europe. It has four national languages, twenty-six cantons, a highly decentralized political system and a long tradition of neutrality. Unlike France, Germany or Italy, it did not emerge through the consolidation of a single dominant kingdom or the unification of territories sharing one language. Instead, Switzerland developed gradually from alliances among small political communities situated within the Alps and the surrounding regions. Its origins are traditionally traced to 1291, when representatives of three mountain communities concluded an agreement for mutual assistance and the preservation of local rights. Yet this event did not create Switzerland in the modern sense. The medieval Swiss Confederacy was a loose network of territories with different governments, religions and political interests. Only after centuries of expansion, religious conflicts, foreign intervention and internal struggles did these communities establish a unified federal state in 1848. Switzerland's formation therefore represents a distinctive process in European history: a country emerged not by eliminating regional political identities, but by creating institutions that allowed them to coexist within a common state.

Historical map showing the expansion of the Swiss Confederation from 1291 to 1515.
The growth of the Swiss Confederation, 1291–1515, in William R. Shepherd’s Historical Atlas (1923).William R. Shepherd, Historical Atlas, Public domain via Wikimedia Commons

The Alps and the Political Geography of Medieval Europe

The geographical origins of Switzerland are closely connected with the Alps. During the Middle Ages, the region that now constitutes Switzerland belonged largely to the Holy Roman Empire, an extensive political system covering much of Central Europe. The empire was not a centralized country with uniform administration. It consisted of duchies, counties, bishoprics, imperial cities, monasteries and other territories whose rulers possessed varying degrees of autonomy.

The Alpine valleys occupied a particularly interesting position within this political landscape. Their mountainous geography made them difficult to govern from distant political centers, while the passes crossing the Alps connected northern and southern Europe. These routes were economically and strategically important because merchants, pilgrims and armies used them to travel between the German-speaking lands and northern Italy.

The development of the Saint Gotthard route during the thirteenth century increased the importance of the central Alpine valleys. Communities such as Uri, Schwyz and Unterwalden gained advantages from controlling access to mountain passes and the surrounding territory. Local inhabitants developed institutions for managing communal resources, resolving disputes and organizing collective defense.

These communities were not independent countries in the modern sense. They existed within the legal and political structures of the Holy Roman Empire and remained connected to imperial authority. However, some obtained privileges allowing them to exercise considerable control over their internal affairs without direct interference from neighboring territorial rulers.

The Habsburg dynasty became increasingly influential in the region during the thirteenth century. Originally a noble family with possessions in what is now northern Switzerland, the Habsburgs expanded their power across the German-speaking lands and sought to consolidate their authority over important Alpine territories.

This expansion created tensions with local communities that wanted to preserve their privileges and customary forms of government. The problem was not initially one of Swiss nationalism against foreign domination. Medieval inhabitants generally understood their political position through local loyalties, imperial rights and relationships with particular rulers. Nevertheless, resistance to expanding dynastic authority encouraged cooperation among neighboring communities.

The geographical fragmentation of the region made such cooperation particularly valuable. No single Alpine valley possessed enough resources to confront a major territorial power alone, but alliances could improve collective security while allowing each community to preserve its own institutions.

These conditions provided the foundation for the earliest Swiss confederation.

The Agreement of 1291 and the Birth of the Swiss Confederacy

The year 1291 occupies a central place in Swiss national history. According to the traditional account, representatives of Uri, Schwyz and Unterwalden concluded an agreement for mutual assistance after the death of King Rudolf I of Habsburg. Their alliance is commonly associated with the Federal Charter of 1291, one of the most important surviving documents of early Swiss political history.

The charter established principles of cooperation among the participating communities. Its provisions concerned mutual assistance against external threats, the settlement of disputes and the preservation of established legal practices. The agreement also reflected concerns about the appointment of officials and the exercise of judicial authority.

However, the charter should not be interpreted as a modern declaration of independence or the constitution of a new country. The participating communities did not proclaim a Swiss nation-state, establish a central government or create a single sovereign territory. They formed an alliance intended to defend existing rights within the political world of the Holy Roman Empire.

The traditional story of Swiss independence also includes the legendary Rütli Oath, in which representatives of the founding communities supposedly swore to resist oppressive rulers. Another famous narrative concerns William Tell, who is said to have defied a Habsburg official by refusing to bow before a symbol of authority. These stories became powerful elements of Swiss national identity, particularly during later centuries, but their historical details cannot be verified in the same way as surviving medieval documents.

The importance of 1291 lies partly in its later interpretation. Swiss historians and political leaders gradually adopted the date as the symbolic beginning of the country, especially during the nineteenth century. Switzerland's national holiday, celebrated on 1 August, commemorates this traditional foundation.

In reality, the early confederation emerged through a gradual process of alliance-building. Earlier agreements may have existed, and the political institutions that eventually became Switzerland developed over several generations.

Armed conflict also strengthened cooperation. In 1315, forces associated with the Swiss mountain communities defeated a Habsburg army at the Battle of Morgarten. Although medieval accounts differ in their details, the victory became an important symbol of resistance to territorial domination. The communities renewed their alliance afterward, reinforcing the developing confederation.

The early Swiss political system therefore emerged from a combination of geography, local privileges, military cooperation and resistance to the expansion of neighboring rulers. Its members did not initially seek to create a unified state, but their alliances gradually established a political framework capable of surviving beyond the immediate conflicts that had produced it.

The parchment Federal Charter of 1291 with its three hanging seals.
The Federal Charter of 1291, preserved in Schwyz.Unknown author; Bundesbriefarchiv, Schwyz, Public domain via Wikimedia Commons

From Three Mountain Communities to a Confederation of Thirteen Cantons

During the fourteenth and fifteenth centuries, the Swiss Confederacy expanded beyond its original Alpine territories. This transformation was crucial because Switzerland could not have developed into its modern form if it had remained only an alliance of isolated mountain valleys.

The first major expansion involved neighboring towns and regions whose political interests overlapped with those of the original communities. Lucerne joined in 1332, followed by Zürich in 1351, Glarus and Zug in 1352, and Bern in 1353. Together, these territories formed the traditional Eight Cantons of the medieval confederation.

The admission of large towns changed the character of the alliance. Zürich, Bern and Lucerne possessed different economies and political structures from those of the rural Alpine communities. Urban elites controlled commercial networks, surrounding agricultural territories and important transportation routes. Their participation gave the confederation greater military and economic resources.

However, the members did not merge their governments. Each canton retained considerable autonomy, while shared institutions remained limited. Cooperation was maintained through treaties, negotiations and meetings among representatives of the participating territories.

The confederation continued expanding through military victories and the acquisition of new territories. The Battle of Sempach in 1386 weakened Habsburg influence in the region, while later conflicts increased the political independence of the Swiss communities.

An important turning point occurred during the Burgundian Wars of the 1470s, when Swiss forces played a decisive role in defeating Duke Charles the Bold of Burgundy. These victories increased the confederation's military reputation and strengthened its influence in European politics.

Further expansion followed. Fribourg and Solothurn joined in 1481, Basel and Schaffhausen in 1501, and Appenzell in 1513. The confederation consequently reached its traditional structure of thirteen cantons.

Yet the territory associated with the Swiss political system was larger and more complicated than the thirteen full members. Some regions existed as allied or associated territories, while others were governed as subject lands controlled by individual cantons or by several cantons jointly.

The inhabitants of these subject territories did not necessarily possess the same political rights as those living in the ruling cantons. The confederation was therefore not a federation of equal democratic communities. It was a collection of political jurisdictions whose relationships reflected military conquest, negotiated alliances and unequal historical privileges.

Swiss forces also participated in military campaigns beyond the Alps, particularly in northern Italy. The defeat of Swiss forces by the French at the Battle of Marignano in 1515 marked an important limitation on this expansion.

Although Marignano is sometimes presented as the beginning of Swiss neutrality, this interpretation is too simple. Swiss mercenaries continued to serve foreign powers, and the confederation remained involved in European diplomacy. Nevertheless, the defeat contributed to a gradual reduction in territorial ambitions beyond the existing Swiss sphere.

By the early sixteenth century, the Confederacy had become a recognizable regional power. It remained politically decentralized, but its territories were increasingly connected through military cooperation, economic interests and shared historical experience.

The Reformation and the Religious Division of Switzerland

The Protestant Reformation introduced a new source of conflict into the Swiss Confederacy. Before the sixteenth century, the cantons shared a broadly Catholic religious framework, although they possessed different political institutions and local interests.

Beginning in the 1520s, reform movements transformed several major Swiss cities. Huldrych Zwingli became the central figure of the Reformation in Zürich, where religious changes were closely connected with the authority of the city government. Bern and several other territories also adopted Protestantism.

Meanwhile, many of the central Alpine cantons remained Catholic. Their political and religious identities became increasingly intertwined as both Protestant and Catholic communities sought to defend their institutions.

The confederation consequently faced a problem that threatened its survival. Its members belonged to different religious communities at a time when religious affiliation was closely associated with political loyalty and military alliances.

Armed conflict broke out during the Wars of Kappel in 1529 and 1531. Zwingli was killed in the second conflict, and the resulting settlement preserved the Catholic position in important parts of the confederation while allowing Protestantism to remain established elsewhere.

The religious division did not disappear. During the following centuries, confessional differences continued to influence alliances, political institutions and military confrontations.

Geneva, which later became an important Swiss city, also emerged as a major center of Protestant reform under John Calvin. However, Geneva was not yet a full member of the Swiss Confederacy. It maintained important alliances with several Swiss cantons while developing its own political and religious institutions.

Despite these tensions, the confederation survived. Its decentralized structure allowed cantons to maintain different religious systems without requiring uniformity throughout the entire political territory.

The Thirty Years' War of 1618–1648 devastated large parts of Central Europe, but the Swiss Confederacy remained largely outside the principal military campaigns. The Peace of Westphalia in 1648 provided formal international recognition of its exemption from the jurisdiction of the Holy Roman Empire.

This did not represent the sudden creation of Swiss independence. The cantons had already exercised substantial practical autonomy for generations. Nevertheless, the Westphalian settlement confirmed their separation from imperial institutions within the European diplomatic order.

By the middle of the seventeenth century, Switzerland had become a politically distinct confederation, but it still lacked the centralized institutions associated with a modern state.

Napoleon and the First Attempt to Create a Unified Swiss State

For much of the seventeenth and eighteenth centuries, the Swiss Confederacy retained a complicated and unequal political structure. The thirteen cantons possessed considerable autonomy, while subject territories remained excluded from full participation in federal decision-making.

Political power within many cantons was concentrated among influential urban families or local elites. Although later Swiss national traditions emphasized freedom and communal independence, the old confederation was not a modern democracy.

These institutional weaknesses became increasingly apparent during the age of the French Revolution. Revolutionary ideas concerning citizenship, equality before the law and political representation encouraged opposition to aristocratic governments and unequal territorial arrangements.

France's military expansion eventually transformed Switzerland directly. In 1798, French revolutionary forces invaded the confederation and helped overthrow the old political order. The existing system of cantonal alliances and subject territories was replaced by the Helvetic Republic.

The new republic was conceived as a centralized state modeled partly on revolutionary France. Its constitution established common political institutions and attempted to reduce the historical privileges of individual cantons.

For the first time, the territories of the former Swiss Confederacy were brought under a substantially unified governmental structure. Subject territories received new political status, and the principle of equal citizenship challenged the older system of unequal cantonal rights.

However, the Helvetic Republic encountered strong resistance. Many communities opposed the loss of local autonomy, while religious and political disagreements continued to divide the country. French military occupation and economic demands further undermined the new system's legitimacy.

Internal instability made the centralized republic difficult to govern. Napoleon eventually concluded that Switzerland required a different constitutional arrangement.

In 1803, he issued the Act of Mediation, which restored much of the cantonal system while preserving important reforms introduced after 1798. Several former subject territories became full cantons, including Aargau, Thurgau, Ticino, Vaud, St. Gallen and Graubünden.

The Act of Mediation was a decisive stage in Switzerland's transformation. It demonstrated that the older system of privileged ruling cantons could not simply be restored without modification, but it also showed that excessive centralization was politically unsustainable.

Switzerland was moving toward a new balance between territorial autonomy and common political institutions, although the final form of that balance had not yet emerged.

The Congress of Vienna and the Road to the Civil War of 1847

Napoleon's defeat led to another reorganization of Switzerland. The Congress of Vienna in 1815 recognized the country's independence and perpetual neutrality as elements of the postwar European settlement.

The territorial arrangement was also expanded. Geneva, Valais and Neuchâtel became full members of the Swiss Confederation, bringing the number of cantons to twenty-two under the traditional system of counting.

The Congress of Vienna settlement was important because it placed Switzerland within the European balance of power as a neutral state. Neighboring powers regarded a neutral Swiss territory as potentially useful for preventing strategic competition across the central Alps.

However, neutrality did not resolve Switzerland's internal constitutional disagreements. The restored confederation remained a loose association of cantons with limited common authority.

During the 1830s and 1840s, political tensions intensified between liberal and conservative forces. Liberal movements demanded constitutional reform, representative institutions and stronger guarantees of civil rights. Conservative groups, particularly in several Catholic cantons, defended traditional religious institutions and cantonal autonomy.

The conflict was not a simple division between all Protestants and all Catholics. Political liberalism and conservatism did not correspond perfectly to religious affiliation. Nevertheless, confessional differences strongly influenced the alliances that developed.

In 1845, seven conservative Catholic cantons formed a separate defensive alliance known as the Sonderbund. Its members were Lucerne, Uri, Schwyz, Unterwalden, Zug, Fribourg and Valais.

The liberal majority within the federal Diet regarded the Sonderbund as incompatible with the confederation's political obligations and voted for its dissolution. The disagreement escalated into civil war in November 1847.

Federal forces commanded by General Guillaume Henri Dufour defeated the Sonderbund in a short campaign lasting less than a month. Dufour sought to minimize casualties and destruction, and the conflict ended with relatively limited loss of life compared with the major European wars of the period.

The defeat of the Sonderbund removed the principal political obstacle to constitutional reform. The victorious liberal cantons could now establish stronger federal institutions without abandoning the cantonal framework entirely.

The civil war of 1847 therefore became the immediate turning point leading to the foundation of modern Switzerland.

The Federal Constitution of 1848 and the Creation of Modern Switzerland

In 1848, Switzerland adopted a federal constitution that transformed the old confederation into a modern federal state. This was the decisive moment in the creation of the political system that continues to define the country.

The constitution established common federal institutions while preserving substantial authority for the cantons. Instead of replacing the cantons with a centralized national administration, it divided governmental responsibilities between the federal state and its constituent territories.

A bicameral Federal Assembly was created. The National Council represented the population, while the Council of States represented the cantons. This arrangement combined two different principles of political legitimacy: representation according to population and representation of the territorial communities that formed the federation.

The constitution also established the Federal Council as a collective executive authority. Rather than concentrating executive power in a single president or hereditary monarch, Switzerland adopted a system in which several members jointly exercised federal executive responsibilities.

Federal authority expanded over important areas of national administration, including customs, postal services, military organization and aspects of economic regulation. Internal customs barriers were removed, helping create a more integrated national market.

At the same time, cantonal governments retained significant powers over education, policing, local administration and other domestic matters. This distribution reflected the central compromise of Swiss state-building: a stronger common government would exist without eliminating the political identities and institutions of the cantons.

The new constitution also established the foundations of a more coherent national citizenship and political framework. However, the democracy created in 1848 remained incomplete by modern standards. Political participation was restricted by gender, and the later system of extensive direct democracy developed through subsequent constitutional reforms.

The federal constitution of 1874 strengthened national institutions and expanded the role of popular referendums. In 1891, the federal popular initiative for partial constitutional revision introduced another important instrument of direct democratic participation. Women did not obtain the right to vote in federal elections until 1971, demonstrating that Switzerland's political institutions evolved gradually rather than emerging in their modern form in a single year.

The territorial structure also continued to develop. In 1979, Jura separated from Bern and became a new canton following a prolonged political process involving regional identity, language and religion. Switzerland today consists of twenty-six cantons, including six historically designated as half-cantons for certain purposes of federal representation and voting.

The constitution of 1848 nevertheless remains the fundamental turning point. Before that year, Switzerland was primarily a confederation of political communities connected through historical alliances. After 1848, it possessed common federal institutions, a national constitutional framework and the legal foundations of a modern sovereign state.

Switzerland's emergence is therefore best understood as a process extending across more than five centuries. The alliances of the central Alpine communities created the first durable framework of cooperation. Military victories and political agreements expanded the confederation beyond its original mountain valleys. Religious conflicts demonstrated the need for coexistence among communities with different beliefs, while French intervention exposed the weaknesses of the old territorial order. The Sonderbund War finally resolved the immediate struggle over whether Switzerland would remain a loose alliance or develop stronger national institutions.

The modern country emerged through a compromise between these competing traditions. Its cantons retained their historical identities and substantial autonomy, but they accepted a common constitutional system capable of governing the country as a whole.

This is why Switzerland differs from many other European states. It was not created by the triumph of one dominant monarchy, one language or one national region. Instead, political communities with different historical backgrounds gradually established a shared state while preserving much of their internal diversity.

The year 1291 remains the symbolic beginning of Swiss independence because it represents the early tradition of cooperation among the Alpine communities. But 1848 marks the creation of Switzerland as a modern federal country. The distinction between these two dates explains the country's unusual historical identity: Switzerland is simultaneously the successor of a medieval alliance and a nineteenth-century constitutional state, whose political stability has rested on the continued balance between cantonal autonomy and federal unity.

← All articlesBack to top ↑
How was Switzerland formed? From medieval mountain communities to a modern confederation | GeoBorders