 During the war, the Duke of Braganza mounted cannons, dug trenches, tended the wounded, ate among the rank and file and fought under heavy fire as men next to him were shot or blown to pieces. His cause was nearly lost until he took the risky step of dividing his forces and sending a portion to launch an amphibious attack on southern Portugal. The Algarve region fell to the expedition, which then marched north straight for Lisbon, which capitulated on 24 July. Pedro proceeded to subdue the remainder of the country, but just when the conflict looked to be winding down to a conclusion, his Spanish uncle Don Carlos, who was attempting to seize the crown of his niece Doña Isabel II, intervened. In this wider conflict that engulfed the entire Iberian Peninsula, the First Carlist War, the Duke of Braganza allied with liberal Spanish armies loyal to Isabel II and defeated both Miguel I and Carlos. A peace accord was reached on 26 May 1834.
