Task: Text Categorization
Input (English): One battle won by this non-Norman polity is also known as the battle of the battle, because a city named the battle was established there in celebration of victory. This polity signed the Treaty of Zamora, and won its independence at the Battle of Ourique against the Almoravids, which led to the establishment of the House of Burgundy in this polity under its first independent king, Afonso Henriques. This politys capital was liberated from the Moors with the help of English knights who were en route to the Second Crusade, and at the Battle of Aljubarrota this country defeated an invasion from Castile. After the Battle of Alcazaquibir, where this politys King Sebastian died, it would be annexed by Philip II of Spain. For ten points, name this Iberian country with capital at Lisbon.
Output (English): History