Battle of São Mamede
The Battle of São Mamede was fought on 24 June 1128, close to Guimarães. It marked the assertion of Portuguese independence from Galicia, with the young D. Afonso Henriques emerging victorious over the troops of his mother, D. Teresa, and Count Fernão Peres of Trava. Afonso Henriques commanded a group of nobles from the Portucalense County who were discontent with the Galician domination of the territory of Entre-Douro-e-Minho, personified by the Trava family.
After this successful revolt, the county's autonomy was consolidated and it expanded southwards, led by the man who was to become the first king of Portugal. In Portuguese historiography, however, this battle was generally considered to be of secondary importance behind the Battle of Ourique. It was only in the nineteenth century that Alexandre Herculano finally drew attention to the crucial importance of the Battle of São Mamede in the formation of Portugal as a nation.