In Portugal, the country was in effective civil war since 1826, when "usurper-king" Miguel I of Portugal and his elder brother Pedro IV of Portugal (both were uncles to Sebastian) battled, until 1834.
Sebastian's mother remarried two decades later, in 1838, her uncle, Infante Carlos, Count of Molina, the first Carlist pretender of Spain.