若昂一世
The monastery was built to thank the Virgin Mary for the Portuguese victory over the Castilians in the battle of Aljubarrota in 1385, fulfilling a promise of King John I of Portugal. The battle put an end to the 1383–85 Crisis.