خوان الأول ملك قشتالة
To celebrate the peace between the two kingdoms, king Fernando I of Portugal agreed on the marriage of his daughter and heir, Beatrice of Portugal, with king John I of Castile. However, to avoid the union of the two countries, this pre-nuptial agreement established the rules to the succession for the two thrones.