This paper is dedicated to the history of Muslim statehood in Azerbaijan in IX-XIII century. The first truly strong was the Sajid dynasty, originating from the Sogdian aristocracy. Its representatives exalted themselves as ghouls in the service of the Abbasids. Having become rulers in Azerbaijan, the Sajids tried to pursue an independent and aggressive policy towards Armenia, which did not always provoke a positive reaction from the caliph. Only at the end of the Sajid rule did their interests again coincide with those of Baghdad. The Muzafarids were another Iranian dynasty, this time the Delemite. Its representatives came from Dalem during its expansion to the northwest. They took upon themselves the blows from Russia, the Ravadids and the Seljuks. The rabadids were a dynasty of Arab origin, which soon became Kurdish. Onomasticon of the dynasty in the 10th - 11th centuries generally Iranian. The era of the greatest power of the Rawwadids was the time of the reign of Mamlan I, who pursued an aggressive policy towards Christian neighbors and the threat from which the Armenians and Georgians neutralized by the conclusion of a defensive alliance. XI century was the time of the gradual fading of the Rawwadids. The Shaddadids were of Kurdish dynasty descent and ruled in Arran. Slow growth of their power was observed in the 10th century, when they began expansion in the possession of the Muzafarids. This dynasty is characterized by close ties with the Armenians. Emirs Fadl and Abu l-Asvar carried out an attack on the Armenian territories, which the Armenians could recapture only by cooperating with the Georgians. To destroy the emirate of the Shaddadids were not able and the Romaios in the middle of the XI century. Only the Seljuks in Arran were able to eliminate the power of the Shaddadids in 1093, and they survived in Shirak until 1199. Shirvan was a state inhabited by Iranian-speaking and Caucasian populations. The Mazyadid dynasty was originally Arab in origin. Shirvan maintained close ties with the state of Lizan. In the tenth century, the Shirvanshahs extended power besides Shirvan to Derbent and Arran. In the second quarter of the XI century. Mazyadids were replaced by the Qesranid dynasty, the onomasticon of which is already Iranian. This dynasty, unlike the Sheddadids in Arran and the Rawwadids in Azerbaijan, retained power in Shirvan under the Seljuks. The Caesranids, like the Mazyadids, continued to claim power over Derbent in the XII century. Shirvan became an object of expansion from Georgia. Shirvans could only resist it with the help of the Seljuks. However, this did not exclude dynastic marriages with Georgian Bagrationi. The most prominent Qesranid was the Shirvanshah Akhsitan, who, with the help of the Georgians, repelled the invasion of the Derbent Khazars and personally repelled the invasion of the Dagestan highlanders. In alliance with Queen Tamar, the Shirvanshah opposed the Atabeks of Azerbaijan. XIII century was the time of the decline of Shirvan, when he became the object of invasion of the Mongols, Kipchaks and Khorezmians. From 1070 Azerbaijan became the possession of the Seljukids, and from 1093 Arran became such. For several decades, Azerbaijan and Arran were the property of the younger Seljukids and were part of the Iraqi Seljuk Sultanate. The design of the state of the Atabeks of Azerbaijan can be dated to the middle of the XII century. Under its first rulers, Shams ad-Din Ildengiz and Jahan-Phelevane, the influence of the Ildengizids extended from the Caspian Sea to the Persian Gulf and from Erzurum to Khorasan. The Ildengizids were those who restrained the expansion of Georgian Bagrationi against Muslim countries and were actually omnipotent workers of the Sultans under the weak Seljukids. Qizil-Arslan has already ceased to look around at the Seljukids completely and has titled itself with a magnificent title. The end of the XII century. - beginning of the XIII century were the time of the decline of the Atabeks of Azerbaijan due to the strife between the Ildengizids and the victories of the Georgians. 20-30-ies of XIII century were the time of the fall of the Atabek state of Azerbaijan. Key words: Shirvan, Azerbaijan, Arran, Sajids, Mosaferids, Shaddadids, Rawwadids, Ildengizids, Seljukids