In the aftermath of the Napoleonic Wars, Spain's military found itself involved in an increasing number of internal conflicts, distracting military attention from other priorities, and continuing to undermine the Spanish economy. The first of these, the Trienio Liberal (1820–3) involved a revolt by soldiers against King Ferdinand VII while they were being embarked for a campaign in America. France intervened militarily to support the monarchy, restoring order, but this was short-lived. When Ferdinand died in 1833, his fourth wife Maria Cristina became Queen regent on behalf of their infant daughter Isabella II. This splintered the country into two factions known as the Cristinos – the supporters of the Queen regent – and the Carlists, the supporters of Carlos V, who had rejected the Pragmatic Sanction of 1830 that abolished the Salic law. The First Carlist War lasted over seven years and the fighting spanned most of the country at one time or another, although the main conflict centered on the Carlist homelands of the Basque Country and Aragon. Many of the military officers involved had served in the Peninsular War a few years before. The Second Carlist War was a minor Catalan uprising in support of Carlos VI, lasting from 1846 to 1849. The Third Carlist War began after Queen Isabella II was overthrown by a conspiracy of liberal generals in 1868, and left Spain in some disgrace; four years later, the latest Carlist pretender, Carlos VII, decided that only force of arms could win him the throne. This Third Carlist War lasted until 1876.