title: Yahya II al-Wathiq
text: # Yahya II al-Wathiq
  
  Abu Zakariya Yahya II (Arabic: أبو زكريا يحيى الواثق) known as Yahyâ II or al-Wathiq, was the son and successor of Abu `Abd Allah Muhammad al-Mustansir. He was the fourth Hafsid Sultan of Tunis who reigned over Ifriqiya from 1277 to 1279.
  
  ## Life
  
  During his reign a new gate, the Bab Jedid was cut in the wall of the medina.
  
  In 1278 there was an uprising of the province of Béjaïa against its Andalusian Chancellor Ibn al-Habbabar. The latter was known for his hostility towards the Almohads, and described by the chronicler Ibn Chamâa as the real ruler of Tunis. Ibn Khaldoun relates that the Chancellor sent his brother Abû al-Alâ 'Idrîs to Béjaïa to take care of the finances of the city, alongside the governor, the Almohad Muḥammad ben Abi Hilâl al-Hintâtî. When the governor had the chancellor assassinated in 1278 he was then obliged to look for someone who could replace the existing authority in Tunis that had appointed the chancellor.
  
  Al-Hintâtî therefore called on the sultan's uncle, Abû Ishaq Ibrahim, to rebel. The latter had already revolted against Abû `Abd Allah Muhammad al-Mustansir, his brother and father of Abu Zakariyâ Yahyâ II, and had fled to Andalusia then to Tlemcen. Ibrahim also had the backing of king Pedro III of Aragon. Welcomed by Muḥammad ben Abi Hilâl al-Hintâtî and the notables of Béjaïa, he took the city in April 1279 and in August of the same year entered Tunis where he was recognized as sultan. His seizure of the throne was peaceful after the army leaders rose up and agreed to recognize him as the new sultan.
  
  Abu Zakariya Yahya yielded his throne to his uncle, but as soon as he took power, Ibrahim ordered the execution of his predecessor and his three children. The only one to escape was his posthumous son, Abu-Assida Muhammad II, who was to be the 6th Hafsid sultan.
  
  