 Ferdinand obtained the control of Viana, Puente La Reina, and other strongholds, as well as the right to maintain a garrison of 150 lances in Pamplona.Thus, Castile strengthened itself militarily against a possible French penetration into Navarre.On August 1476, Afonso V of Portugal departed towards France after signing a truce with Isabella and Ferdinand.