After this, John of Castile returned to the King the towns of Paredes de Nava, Cabreros, Medina de Rioseco, Castronuño and Mansilla. At the same time as Ferdinand IV ordered to abandon the siege of Algeciras, James II of Aragon ordered the siege of Almería to be lifted, without having managed to seize the city. On the whole, the campaign of the year 1309 proved more profitable for the arms of the Kingdom of Castile and León than for the Kingdom of Aragon, since Ferdinand IV was able to incorporate Gibraltar into their dominions. The betrayal and desertion of the two relatives of the king, Juan Manuel of Villena and John of Castile was badly considered by all the European courts, that didn't save qualifiers to criticize the two Castilian magnates. In 1310, after the siege of Algeciras, Ferdinand IV sent Juan Núñez II de Lara to confer with Pope Clement V, to implore him not to permit the process against his predecessor Pope Boniface VIII, who had legitimized the marriage of the parents of Ferdinand IV in 1301, thereby legitimizing the Castilian King himself. Juan Núñez II de Lara was to inform the Pope about the causes that had motivated the lifting of the siege of Algeciras, and also had to petitioned, on behalf of Ferdinand IV, funds for the continuation of the war against the Kingdom of Granada. Pope Clement V tried to soften the animosity that King Philip IV of France felt towards the late Pope Boniface VIII, condemn the behavior of John of Castile and Juan Manuel of Villena during the siege of Algeciras, granted the Castilian monarch the "tithes" collected In his domains for a year, and sent various letters to the prelates of the Kingdom of Castile and León in which they were ordered to severely reprimand those who didn't collaborate with Ferdinand IV in the enterprise of the "Reconquista". In the meanwhile, Ferdinand IV undertook again the war against the Kingdom of Granada. His brother the "Infante" Peter conquered the castle of Tempul and later went to Seville, where the King was. In November 1310, both brothers went to Córdoba, where a popular uprising had taken place against several knights of the city. Meanwhile, Dowager Queen María de Molina, who was in Valladolid, begged her son to join her there, so that the monarch might be present at the wedding of his sister, the "Infanta" Isabella with John, Viscount of Limoges and heir of the Duchy of Brittany.