Ismail came to the throne on 23 August 1359 (28 Ramadan 760) in a coup masterminded and financed by his mother Maryam and supported by his father's cousin Abu Abdullah Muhammad—called
el Bermejo, "the Red-haired"—who was also his brother-in-law, as he had married one of his full sisters several years before. Under cover of the night in the holy month of
Ramadan, one hundred men scaled the Alhambra's walls and overwhelmed the guards. They killed the
hajib Ridwan, demolished his house, and took his rich possessions. Muhammad V happened to be outside the Alhambra, and fled to the eastern city of
Guadix after failing to retake the palace compound. The conspirators found Ismail in his assigned palace and declared him as the new Sultan. However, soon much actual power was held by his brother-in-law el Bermejo, who as high-ranking royalty was customarily titled
al-rais (
arráez). Muhammad V's authority was recognised in Guadix, and he was supported by the commander of the
Volunteers of the Faith garrisoned there, Ali ibn Badr ibn Rahhu. However, the dethroned sultan failed to gain the loyalty of the eastern port of
Almería or to secure help from his ally Peter I of Castile. He then left the
Iberian Peninsula for North Africa after he was offered asylum by the
Marinid Sultan Abu Salim. He sailed from the western port of
Marbella to
Ceuta, and thence to the Marinid capital of
Fez on either 28 October 1359 or 4 November 1359 along with his retinue, his vizier Ibn al-Khatib—whom Ismail agreed to release—and his
katib (secretary)
Ibn Zamrak. Ismail replaced many of the Granadan high officials known or suspected to be loyal to his predecessor. He appointed Ibn al-Hasan al-Nubahi as the chief judge (''qadi al-jama'a''), replacing
Ibn Juzayy, one of the most celebrated men in the city, whom Ismail suspected of supporting Muhammad V. Ismail appointed Idris ibn Uthman ibn al-Ula as the Chief of the Volunteers in Granada. His predecessor, Yahya ibn Umar ibn Rahhu, remained loyal to Muhammad V and fled to Castile, along with 200 of his cavalry. Yahya was given asylum in Cordoba until he joined the Sultan-in-exile in 1361. == Downfall ==