and Alfonso took Castille for himself and Garcia recovered his kingdom of Portugal and Galicia, but in 1073 the Alfonso VI gathered all power and started to style himself as Imperator totius Hispaniæ (Emperor of All Hispania) since 1077. When the Emperor died, the Crown was left for his daughter Urraca, while Teresa inherited the County of Portugal. County of Portugal Battle of Ourique Kingdom of Portugal Siege of Lisbon Conquest of Santarém Siege of Santarém (1184) After the Reconquista – conflicts with Castile 1383–85 Crisis Anglo-Portuguese Alliance Imperial expansion Portuguese–Mamluk war Persian–Portuguese war Portuguese intervention in Abyssinia Portuguese conquest of Jaffna Kingdom Dutch–Portuguese War Battle of Alcácer Quibir Ottoman–Portuguese conflicts Conquest of Tunis (1535) Ottoman–Portuguese conflicts (1538–57) Ottoman–Portuguese conflicts (1558–66) Ottoman–Portuguese conflicts (1580–89) Ottoman–Venetian War (1714–18) Kongo-Portuguese conflicts Battle of Mbumbi Battle of Mbanda Kasi Battle of Mbwila Battle of Kitombo Guaraní War Portuguese conquest of the Banda Oriental Conflicts with Spain War of the Portuguese Succession Portuguese Restoration War War of the Spanish Succession Spanish–Portuguese War (1735–37) Spanish–Portuguese War (1761–63) Spanish–Portuguese War (1776–77) Other European conflicts Seven Years' War Fantastic War The Napoleonic Wars War of the Oranges (1801) Instability prior to the French invasions Riots of Campo de Ourique and conspiracy of the Marquis of Alorna (1803) On 24 and 25 July 1803, in Campo de Ourique, Lisbon, a regiment of infantry commanded by liberal army man Gomes Freire de Andrade and the Legion of Light Troops commanded by the also liberal-leaning Marquis of Alorna mutinied against the state authorities, entering in confrontation with the then recently created Royal Guard of the Police. The end of the mutinies, of forcing political liberalism on Portuguese government, did not succeed. Conspiracy of Mafra (1805) In 1805, then Princess regent (soon afterwards Queen) Carlota Joaquina promoted a conspiracy in Mafra with the objective of removing her husband Prince João from regency by claiming him to be mentally incapable, assuming regency on her own in his place, being aided in the attempted coup by the Count of Sabugal, the Marquis of Ponte de Lima, the Count of Sarzedas, the Marquis of Alorna and Francisco de Melo. The attempted conspiracy did not succeed, but it did increase the tension between the couple to the point of a divorce or separation being considered, which was never advanced due to the damage that it would bring to the Portuguese state, and the couple still