His forces captured various castles and defeated the Sultan in battle, before being forced to return to Málaga after failing to besiege the capital. After this setback, he was deposed as governor of Málaga due to an attempt to yield the city to the Marinid Sultanate, and he was imprisoned by his son Ismail until his death in 1320. At some point after his imprisonment, Ismail restarted the rebellion and succeeded in taking the throne as Ismail I (r.