Following the Act of Mediation in 1803 Bellinzona became part of the independent canton of Ticino, and the capital of the new canton from 1803 to 1814. From that date until 1878, Bellinzona, Lugano, and Locarno, took turns being capital every six years.
The city includes the village of Artore and, since the incorporation in 1907, the former municipalities of Carasso, Daro, and Ravecchia.
In 1874, the first sections of the Gotthard railway opened, linking Bellinzona to Biasca and Locarno. By 1882, the whole line was open, extending northwards to northern Switzerland via the Gotthard Tunnel, southwards to Lugano and Milan via the Monte Ceneri Pass, and down the east shore of Lake Maggiore to Luino. Between 1907 and 1972, Bellinzona was also linked to Mesocco and other Val Mesolcina communities by the Bellinzona�Mesocco railway