The Political Constitution of the Spanish Monarchy (), also known as the Constitution of Cádiz () and as La Pepa, was the first Constitution of Spain and one of the earliest codified constitutions in world history. The Constitution was ratified on 19 March 1812 by the Cortes of Cádiz, the first Spanish legislature that included delegates from the entire nation, including Spanish America and the Philippines. "It defined Spanish and Spanish American liberalism for the early 19th century." With the notable exception of proclaiming Roman Catholicism as the official and sole legal religion in Spain, the constitution was one of the most liberal of its time: it affirmed national sovereignty, separation of powers, freedom of the press, free enterprise, abolished corporate privileges (fueros), and established a constitutional monarchy with a parliamentary system. It was one of the first constitutions that allowed universal male suffrage, with some exceptions, through a complex indirect electoral system. It extended political rights for representation to Spanish America and the Philippines, a significant step for the demands of American-born Spaniards. When King Ferdinand VII returned to power in 1814, he dissolved the Cortes and abrogated the constitution, re-establishing absolute monarchy. The constitution was reinstated during the Trienio Liberal (1820–1823) and again in 1836–1837 while the Progressives prepared the Constitution of 1837. It was an important model for later constitutions in Spain and Spanish America. Napoleonic political changes Until the Napoleonic invasion of Spain in 1808, Ferdinand VII ruled as an absolute monarch. Napoleon forced Ferdinand's abdication as well as the renunciation of his father Charles IV's rights, and then placed his brother Joseph Bonaparte on the throne of Spain. Seeking to create legitimacy for Joseph I of Spain, Napoleon called the Cortes, whose delegates he had selected, to proclaim Joseph as the legitimate monarch. The Cortes then approved the French-style Bayonne Constitution and called for a Cortes with 172 members, of which 62 were to be from Spanish America. There was to be a Council of State with a section for The Indies, the name Spain persisted in using to designate Spanish American and the Philippines, which would be under the control of American-born and Philippine-born Spaniards. Despite these formal attempts to legitimize the rule of Joseph Bonaparte by gaining consent of the Cortes, it was rejected by Spaniards on the peninsula and Spanish America and the Philippines. It had great importance, since it "set off