Answer
The Portuguese civil war pitted supporters of John of Aviz against those backing Beatrice, daughter of King Ferdinand I, who had married King John I of Castile, thus uniting the crowns of Portugal and Castile. The conflict arose over the succession to the Portuguese throne following the death of King Fernando without leaving a male heir.