The last traces of the bishop of Chur's jurisdiction were abolished in 1526. The Musso war of the 1520 drove the Three Leagues closer to the Swiss Confederacy. The lands of the canton of Graubünden were part of the Helvetic Republic, but the "perpetual ally" of Switzerland became a canton in 1803. The constitution of the canton dates from 1892.