In 1798, the lands of the canton of the Grisons became part of the Helvetic Republic as the Canton of Raetia except Valtellina, which was separated in 1797 for joining to the Cisalpine Republic. It was later part of Empire of Austria in 1814 before joining to Kingdom of Italy in 1859. With the Act of Mediation the "perpetual ally" of Switzerland became a canton in 1803. The constitution of the canton dates from 1892. In the following century, there have been about 30 changes made to the constitution.