Бабек
In the 9th century the anti-Arab revolt of Babak Khorramdin and later the Anarchy at Samarra led to the disintegration of the Abbasid Caliphate. Muslim rule in the mountainous Dagestan declined. In the 9th to 11th centuries some territories of southern Dagestan as Tabasaran, Kura, Akhti, Rutul and Tsakhur were under the influenced of a stronger Shirvan. The Derbent emirate was formed. Kumukh Shamkhalate consisted of one Lakia.