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. To celebrate his victory and acknowledge divine help, John I of Portugal ordered the construction of the monastery of "Santa Maria da Vitória na Batalha" and the founding of the town of Batalha (; ), close to the site where the battle was fought. The king, his wife Philippa of Lancaster, and several of his sons are buried in this monastery, which is now a UNESCO World Heritage Site.