The Federal Treaty (German: Bundesvertrag, French: Pacte fédéral) was the legal foundation for the new Swiss Confederacy of 1815. It came about after interventions by the great powers of the Sixth Coalition that defeated Napoleon.
The Federal Treaty defined a confederation between 22 independent Cantons. From 1815 until the Swiss Federal Constitution of 1848, it acted as the Restorationist Constitution of Switzerland.
When the anti-French troops marched into Switzerland in 1813, the Act of Mediation imposed by Napoleon in 1803 lost meaning and was repealed by 10 of the 19 cantons, who simultaneously founded the Confederate Convention in Zürich with the goal of establishing a new "Federal Union" (Bundesverein) with the Old Swiss Confederacy in mind. 9 old and 5 new cantons were represented. From February 1814 on, a new constitution was being negotiated to replace the Act of Mediation.
At the same time, the Reaction was developing fast. The Bernese bourgeoisie staged a coup d'état in the Canton of Bern, abolished the sovereignty of Vaud and Aargau and annexed them back to Bern. In the cantons of Solothurn, Fribourg and Lucerne the bourgeoisie seized power in 1814 as well. The Waldstätte Schwyz, Nidwalden and Uri as well as Zug wanted to return to the time before the Helvetic Republic and convened an Anti-Diet. In March 1814, Switzerland teetered on the brick of civil war between the reactionary cantons led by Bern against the moderate cantons led by Zürich. With the so-called "Long Diet" from 6 April 1814 until 31 August 1815 envoys of the European great powers imposed the existence of the new cantons and threatened with a "forced intermediation" if the Confederates would not come to terms with themselves. Under the influence of Ioannis Kapodistrias, Stratford Canning, Claude Marie Gustave de Damas and August Ernst von Steigentesch, a new draft constitution was formed. In it, the military competence of the Confederacy was strengthened, which the reactionary regions vehemently rejected: only 9.5 cantons agreed (Nidwalden was a so-called "half-canton") and especially the great Bern opposed it. When the reactionary cantons were again being driven into forming a separate alliance (Sonderbund) and thus civil war was looming once more, the great powers considered partitioning Switzerland, which eventually resulted in an agreement by the Diet and led to a new treaty. The new Federal Treaty was adopted on 9 September 1814 and went into force on 7 August 1815.