Battle of São Mamede, near Guimarães: Forces led by Afonso I defeat forces led by his mother Teresa of León and her lover Fernando Pérez de Traba.

The Battle of São Mamede (Portuguese: Batalha de São Mamede, pronounced [ˈsɐ̃w̃ mɐˈmɛð(ɨ)]) took place on 24 June 1128 near Guimarães and is considered the seminal event for the foundation of the Kingdom of Portugal and the battle that ensured Portugal's Independence. Portuguese forces led by Afonso Henriques defeated forces led by his mother Teresa of Portugal and her lover Fernão Peres de Trava. Following São Mamede, the future king styled himself "Prince of Portugal". He would be called "King of Portugal" starting in 1139 and was recognised as such by neighbouring kingdoms in 1143.