 He had served with distinction on campaign in al-Andalus, was appointed governor of Málaga in 1202, and "sheikh" of the Masmuda tribe of the Haskura in 1206.He served for some time after that as governor in Sijilmassa, and around 1221, was briefly governor in Seville.Abd al-Wahid was back in Marrakesh in February 1224, when his grand-nephew, the young Almohad caliph Yusuf II, was accidentally killed, leaving no heirs.