 In 1308 the kings Ferdinand IV of Castile and James II of Aragon met here to agree and sign the Treaty of Alcalá de Henares by which were distributed the territories obtained to al-Andalusian Taifas during the Reconquista.Also in the 14th century, Archbishop Pedro Tenorio (1377-1399) rebuild the building fortifying it.He built a parade courtyard, rectangular, of more than 2 hectares.