Switzerland has existed as a state in its current form since the adoption of the Swiss Federal Constitution in 1848.

An excerpt from the article 45 facts about Switzerland

Switzerland's forerunners established a protective alliance in the late 13th century, creating a loose confederation of states that lasted for centuries. The Federal Charter of 1291 is considered the founding document of Switzerland.