For reasons which are still obscure, Maysara al-Matghari, the original leader of the Berber Revolt and self-proclaimed caliph, was deposed and executed by fellow Berber rebels in the Summer or Fall of 740. Khalid ibn Hamid, a respected Zenata chieftain, was elected to take his place.