Akmazir ibn Akhtar was a Moorish emir in the service of El Cid during the 11th century. He feared Ibn Yusuf as much as Castile did, and he allied with El Cid during his 1094 capture of Valencia and his 1099 battle with Ibn Yusuf.