The Battle of São Mamede 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.