Defending the throne The first years of Ismail's reign were marked by conflict with the deposed Nasr, who called himself "King of Guadix" and ruled the city independently. He accused Ismail of violating his guarantee of Nasr's security and enlisted the help of his relatives and servants to attempt to regain the throne. He was also supported by the exiled North African princes Abd al-Haqq ibn Uthman and
Hammu ibn Abd al-Haqq, who followed him to Guadix. Ismail put his border regions on alert to anticipate Castilian interventions in favour of Nasr, whom the Castilian king considered to be his vassal. He also appointed Uthman ibn al-Ula as the commander of the western section of the
jund (regular army), in charge of facing the Castilian threat, in addition to his post as the commander of the Volunteers of the Faith. Ismail laid siege to Guadix in May 1315 but left unsuccessfully after 45 days. Nasr requested help from Castile and Aragon: King
James II of Aragon did not pledge any specific assistance, but Peter summoned the nobles of Castile in the spring of 1316, securing support for a military campaign in Granada. Castile sent a supply column to Nasr, again besieged in Guadix, but it was intercepted by Granadan forces led by Uthman ibn Abi al-Ula, resulting in a major battle on 8 May at
Guadahortuna/Wadi Fortuna near
Alicún. Contemporary Muslim and Christian sources disagreed on the victor of this battle, but modern historians have concluded that Castile won the battle: Harvey and Fernández-Puertas infer that the Castilians achieved a narrow victory based on the fact that they advanced closer to Granada after the battle, while Joseph F. O'Callaghan wrote that it was a "complete victory" which resulted in the death of 1,500 Muslims. Ismail was forced to lift the siege and withdraw to Granada, and in the following month Peter captured various castles, including
Cambil, Alhamar, and Benaxixar, and burned the outskirts of
Iznalloz. Meanwhile, Ismail allied himself with Yahya ibn Abi Talib, the
Azafid governor of
Ceuta, who defeated Castile in a naval battle and then
laid siege to
Gibraltar. The siege was abandoned when Castile sent a relief force. Later in the summer of 1316, Peter and Ismail agreed to a truce until 31 March 1317. Peter invaded Granada again in 1317, pillaging the countryside in the plain of Granada in July, and then captured
Bélmez. Ismail then agreed to pay tribute to Castile in exchange for another truce. War resumed in the spring of 1318, and by September Ismail and Peter agreed to another truce. Ismail expected another attack to be imminent: Castile and Aragon had secured a
crusading bull in 1317 from
Pope John XXII, who also authorised the use of funds levied by the church to support the war. Ismail sought help from the Marinid Sultan
Abu Sa'id Uthman II (r. 1310–1331), who required that Ismail hand over Uthman ibn Abi al-Ula, who had previously attempted to claim the Marinid throne for himself. Ismail rejected this condition. Peter began preparations for another invasion and told Ismail he had to break the truce and stop receiving Granadan money because of the papal bull; Ismail denounced this act as a betrayal. At this point, Peter's intention was probably not the restoration of Nasr but rather the total conquest of Granada, and he declared, "I would not be a son of King
Don Sancho, if, within a few years, if God gives me life, I did not cause the house of Granada to be restored to the Crown of Spain." Peter invaded Granadan territories in May 1319 and captured Tíscar on the 26th. Peter was joined by his co-regent,
Infante John, and they advanced to Granada in mid-June. They arrived in the city's vicinity on 23 June, but decided to turn back on the 25th. On the same day, Ismail's troops under Uthman ibn Abi al-Ula began their counter attack, attacking the
rearguard commanded by Infante John. Peter responded by leading his army of 9,000 horsemen and more foot soldiers against Uthman's 5,000 horsemen. The ensuing
Battle of the Vega of Granada resulted in a complete Muslim victory. Peter fell from his horse, either struck down by blows while trying to lead his troops or entangled when charging a Granadan horseman on his own, and immediately died. John suddenly became incapacitated, "neither dead or alive", when he was trying to rally his troops after hearing the news about Peter; he would die later at night. Demoralized at Peter's death and John's incapacitation, the remaining Castilian commanders began a disorderly retreat. The Granadan forces, thinking the Castilians were preparing for battle, attacked their camp, killing and capturing many Castilians and looting their camp. Authors from both sides considered this outcome a judgement from God, with Ibn Khaldun declaring it "one of the most marvelous of God's interventions in favor of the true faith".
Consolidation The death of the two Castilian regents at the Battle of the Vega and the thorough defeat of their forces effectively ended the Castilian threat to Ismail's throne. With Castile's court in disarray, the
Hermandad General de Andalucíaa regional confederation of frontier townsacted to negotiate with Granada. An eight-year truce was agreed between the
hermandad and Ismail at
Baena on 18 June 1320, and effectively ended Castile's support for Nasr. Each town of the
hermandad sent representatives to sign the treaty and pledged to accept a new regent only if he or she accepted the treaty. JamesII of Aragon, who also received papal authorisation and funds for a crusade against Granada, initially rebuked the
hermandad for making a treaty which he stated was a "disservice to God" and not authorised by the crown, but finally made a treaty with Ismail in May 1321, to last for five years. Ismail also negotiated peace with
Don Juan Manuel, acting as the leader of
Murcia, part of the Castilian realms which separated Granada and Aragon. The terms include a provision that Granada could use Murcian territory in case of war against Aragon, in which case Murcia must not warn Aragon of its troops' movement. However, peace between Granada and Aragon held and their truce was renewed in 1326. Nasr died without heir in Guadix in 1322, and Ismail reunited the territories formally under his control with the emirate. Nasr's death meant Ismail's rule was now uncontested and paved the way for a new lineage of sultans beginning with him. Despite the treaty at Baena, some other truces between Granada and Castile expired, and conflict restarted. A Castilian fleet under
Alfonso Jofré Tenorio defeated Granada in a naval battle, and according to Christian records captured 1,200 Muslims who were shipped to
Seville. Meanwhile, emboldened by the end of the threat from Nasr and the lack of leadership in the Castilian court, Ismail crossed the land border with Castile in order to strengthen his control over the frontiers and recapture border fortresses. In July 1324 he recaptured
Baza, near Guadix. In either 1324 or 1325, he took
Orce,
Huéscar, and
Galera, and used
cannons during one of the sieges (see
below). Ismail ordered the rebuilding of defences in the conquered places, and worked on the moat of Huéscar with his own hands. Poems celebrating some of Ismail's military accomplishments were written in the Dar al-Mamlaka al-Saida () in the
Generalife of the Alhambra. Ismail's last campaign was the siege of
Martos, from 22 June to 6 July 1325. During the assault Ismail lost control of his troops, who proceeded to sack the city and massacre its inhabitants. The atrocities were roundly condemned by Muslim chroniclers.
Reported use of cannons Historians report the use of cannons at one of Ismail's sieges in 1324 or 1325, which would be the weapon's first-ever use on the Iberian peninsula, but there are differing details and interpretation. Both Joseph F. O'Callaghan (2011) and Francisco Vidal Castro unequivocally write that cannons were in fact used, in Galera according to O'Callaghan or in Huéscar according to Vidal Castro.
Rachel Arié, also without equivocation or explanation, writes that
Greek fire was used against Huéscar. L. P. Harvey considers both possibilities and noted that the Arabic word used by Ibn al-Khatib in reporting the event was
naft, which can be translated as Greek fire, but in
Andalusian Arabic can also refer to cannons and gunpowder. Harvey argues for the latter interpretation, because the report mentions that the device fired an iron ball (
kurra hadidin) and made a "thunderous noise" as it did so, and these details were also corroborated by a different eyewitness (unnamed by Harvey). The weapon seemed to have enticed the surrender of the defenders in the siege, although it did not appear to make further impact in the short-term. During the reign of Ismail's son
YusufI, the Granadans were recorded to have used the weapon again in the more strategically important
defense of Algeciras of 1342–44, and it would later be used in the better known
Battle of Crécy (1346). == Administration ==