A Portuguese army entered the territory of the Crown of Castile under the command of Afonso V on May 10, 1475, and advanced to Plasencia, where Joanna was expecting him. Joanna and Afonso were proclaimed sovereigns of Castile on May 25 and were married; the required Papal dispensation (Joanna was Afonso's niece) arrived a few months later. From Plasencia, they marched to Arévalo, with the intention of heading towards Burgos. There, Afonso hoped to be able to unite with any troops sent by his ally, Louis XI of France.