honors, or pension without Portuguese government permission. Discretionary naturalisation could be granted to persons who were living in Portugal while married to a Portuguese woman; acquired a trading, farming, or industrial establishment in Portugal; or performed certain services to the country. 1826 constitutional charter The Constitutional Charter of 1826, in effect during bouts of infighting and warring between 1826 and 1828, 1834 and 1836, and then finally between its 1842 restoration and the 1910 end of the monarchy and the founding of the Republic of Portugal, expanded jus soli to all non-enslaved persons born in Portuguese territory, as inspired by the 1824 Imperial Constitution of Brazil. Citizenship by descent continued to be limited to those children born outside Portugal whose in-wedlock fathers or out-of-wedlock mothers lived in Portugal, except where that parent was abroad in royal service. Loss of citizenship could occur with foreign naturalisation, certain criminal convictions, or acceptance of foreign government honors or rewards without Portuguese permission. It left to regular law the specifications for naturalisation, which in 1836 were detailed as being an adult, being financially self-sufficient, and having two years of residence in Portugal (except for a person of Portuguese origin, having a Portuguese wife, or having accomplished certain actions). 1867 civil code The 1867/1868 Civil Code provisions provided the details for the 1826 charter's broad language, including the ability for a child to opt out by declaration from the automatic jus soli citizenship for persons born in Portugal to a foreign father or out-of-wedlock mother. (If the declaration was made on behalf of the child, the child could withdraw the declaration upon adulthood.) The 1867 civil code additions also softened the jus sanguinis requirements of the 1826 charter by allowing for jus sanguinis by declaration of desire for Portuguese nationality as an alternative to actual residence in Portugal. Naturalisation was extended automatically to a foreign woman who married a Portuguese man. The 1867 code also updated the 1836 wording on naturalisation conditions, to make it available to a person who was an adult, was financially self-sufficient, did not have a criminal record, had performed all military duties in the country of origin, and had three years of residence in Portugal (except for a person of Portuguese origin, having a Portuguese wife, or having accomplished certain actions). Loss occurred with naturalisation in another country (but only for the individual concerned, not a wife or child unless