With the removal of Ferdinand VII during the Peninsular War, independence movements broke out in the intendancies of San Salvador and León in 1811, which were quickly suppressed. In 1812 the Cortes of Cádiz divided the region into two provinces: "Guatemala" (consisting of Guatemala, Belize, Chiapas, Honduras and El Salvador) and "Nicaragua y Costa Rica". These provinces existed from 1812 to 1814 and once again from 1820 to 1821, the period during which the Spanish Constitution of 1812 was in effect. The two provinces elected seven deputies to the Cortes during the first period.