Edward's premature death provoked a political crisis in Portugal. Leaving only a young son, Afonso, to inherit the throne, it was generally assumed that Edward's brothers would take over the regency of the realm. But Edward's will appointed his unpopular foreign wife, Eleanor of Aragon, as regent. A popular uprising followed, in which the burghers of the realm, assembled by John of Reguengos, acclaimed Peter of Coimbra as regent. But the nobles backed Eleanor's claim, and threatened civil war. The regency crisis was defused by a complicated and tense power-sharing arrangement between Eleanor and Peter.
