During the Portuguese Interregnum, the nobility of Chaves supported Beatrice of Portugal, as she was heir presumptive to King Ferdinand I, since he left no male heirs. The potential loss of independence of Portugal, through her marriage to John I of Castile resulted in the rebellion by the Master of the Order of Aviz (later King John I of Portugal), who would garner the support of the Portuguese Cortes, thus laying the seeds for his triumph at the Battle of Aljubarrota. Yet, many nobles refused to break their oaths of fielty to Beatrice (including in Chaves), necessitating John's travel to Porto in force and scaring the nobles of Chaves and Bragança into capitulating.