
Arabs first established themselves in theCaucasus in the eighth century, during theArab conquest of Persia (see alsoMuslim conquest of Armenia andArab rule in Georgia). The process of shrinking of theAbbasid Caliphate in the tenth century was followed by the establishment of several Arab-ruled principalities in the region, chiefly the principality ofShirvan (most of present-dayAzerbaijan and southeast part ofDagestan) ruled by theMazyadid dynasty. As the rulers of Shirvan (known asShirvanshahs) spread their control over much of the Southeast Caucasus and at the same time found themselves more and more isolated from theArab world, they were undergoing gradualPersianisation. Arab personal names of the Shirvanshahs gave way to Persian ones, members of the ruling dynasty were claiming Ancient Persian descent (possibly having intermarried with members of local pre-Islamic nobility)[1] andPersian gradually became the language of the court and the urban population,[2] while the rural population continued to speak the indigenous languages ofCaucasian Albania. However by the seventeenth century[3] a local Turkic idiom (which later would develop into modernAzeri) became the language of everyday life, as well as the language of interethnic communication.[4]
Arab migration continued during the Middle Ages. Nomadic tribes of Arabs occasionally made their way into the region undergoing assimilation by the local population. In 1728, aRussian-Swedish officer named Johann-Gustav Gärber described a group ofSunni Arab nomads who rented winter pastures near the Caspian shores ofMughan (in present-day Azerbaijan).[5][6] It is likely that the Arab nomads arrived in the Caucasus in the sixteenth or seventeenth century.[7] In 1888, an unknown number of Arabs still lived in theBaku Governorate of theRussian Empire.[8][9]
In his report, Gärber mentioned that the Arab nomads of Mughan spoke a "mixed Turkic-Arabic language". In 1840Abbasgulu Bakikhanov attested an "altered version of Arabic" among some residents of Shirvan (seeShirvani Arabic).[10] The Arabic language, or its local variety, lingered in Azerbaijan until the second half of the nineteenth century and in Dagestan until the 1930s (inDarvag,Tabasaransky District),[7] after which the population of these pockets began identifying itself asAzeri, having adopted Azeri as their mother tongue. The 1897 Russian Imperial census indicated 912 Arabic-speakers in central and southern Dagestan[11] and none in what would become Azerbaijan. Notably,literary Arabic retained its role as the language of learning in Dagestan for centuries[12] and was the main language of instruction in the local schools from 1920 to 1923 until replaced by Azeri (and later by other indigenous languages of Dagestan).[13]
As of 2012[update] the names of dozens of villages across Azerbaijan and Dagestan (e.g.Arabgadim,Arabojaghy,Arablar,Arab-Yengija,Chol Arab etc.) bear traces of their once Arab population.