The Cortes of Cádiz produced the first written Spanish constitution, promulgated in Cádiz on 19 March 1812, and is regarded as the founding document of liberalism in Spain. It is one of the first examples of classical liberalism or conservative liberalism worldwide. It came to be called the "sacred code" of the branch of liberalism that rejected a part of the French Revolution. During the early nineteenth century it served as a model for liberal constitutions of several Mediterranean and Latin American nations. It served as the model for the Norwegian Constitution of 1814, the Portuguese Constitution of 1822 and the Mexican one of 1824, and was implemented with minor modifications in various Italian states by the Carbonari during their revolt of 1820 and 1821.