Abu'l-Qasim Samgu ibn Wasul al-Miknasi (died 784/5) was a Miknasa Berber leader who according to tradition founded the oasis town of Sijilmasa and became its second ruler.
According to the traditional account, as narrated by the medieval sources (chiefly the 11th-century geographer al-Bakri), Samgu (or Samgun) was a Miknasa Berber who adopted Sufri Kharijism, and was a student of the famous Berber Khariji missionary Ikrimah Mawla Ibn Abbas. He chose the site of Sijilmasa, which he used as pasture for his flocks, and with 40 followers established a town there in 757/8. The establishment of the town was part of a larger westward movement of Sufri Kharijites in the Maghreb, fleeing the westward expansion of Abbasid power in Ifriqiya, and the establishment of the rival Ibadi Kharijite Rustamid emirate of Tahert.
Somewhat surprisingly, as Charles Pellat comments, the community chose a black African, Isa ibn Mazyad al-Aswad as its leader, but he was deposed and left to die, tied to a tree, in 772, with Samgu succeeding him. Modern historians have suggested this episode as the result of ethnic or tribal rivalries, namely, that the election of Isa was due to an initial predominance of black Africans in the region, and his deposition and replacement as the result of the growth of the Kharijite Berber population over time.
According to the medieval sources, Samgu reigned for 13 years and died in 784/5. He was succeeded by his son, Abu'l-Wazir al-Yas, who was deposed in 790/1 by his brother Abu'l-Muntasir al-Yasa.