The Battle of Aljubarrota (alʒuβɐˈʁɔtɐ; see Aljubarrota) was fought between the Kingdom of Portugal and the Crown of Castile on 14 August 1385. Forces commanded by King John I of Portugal and his general Nuno Álvares Pereira, with the support of English allies, opposed the army of King John I of Castile with its Aragonese and French allies, as well as Genoese mercenaries at São Jorge, between the towns of Leiria and Alcobaça, in central Portugal. The result was a decisive victory for the Portuguese, ruling out Castilian ambitions to the Portuguese throne, ending the 1383–85 Crisis and assuring John as King of Portugal.
Portuguese independence was confirmed and a new dynasty, the House of Aviz, was established. Scattered border confrontations with Castilian troops would persist until the death of John I of Castile in 1390, but these posed no real threat to the new dynasty.
1383–1385 Portuguese interregnum
The end of the 14th century in Europe was a time of revolution and crisis, with the Hundred Years' War between the English and the French for Western France, the Black Death devastating the continent, and famine afflicting the poor. Portugal was no exception. In October 1383, King Ferdinand I of Portugal died with no son to inherit the crown. The only surviving child of his marriage with Leonor Telles de Meneses was a girl, Princess Beatrice of Portugal.
In April of that same year the King had signed the Treaty of Salvaterra de Magos with King Juan I of Castile. The treaty determined that Princess Beatrice was to marry Juan I, king of Castile, and the Crown of Portugal would belong to the descendants of this union. This situation left the majority of the Portuguese discontented, and the Portuguese nobility was unwilling to support the claim of the princess because that could mean the incorporation of Portugal into Castile. Also, the powerful merchants of the capital, Lisbon, were enraged at being excluded from the negotiations. Without an undisputed option, Portugal remained without a king from 1383–85, in an interregnum known as the 1383–85 Crisis.