During the War of Independence the main cities and their surrounding countrysides became provinces though the intervention of their "cabildos". The Anarchy of the Year XX completed this process, shaping the original thirteen provinces. Jujuy seceded from Salta in 1834, and the thirteen provinces became fourteen.