Кубинское ханство
In the following centuries, Mountain Jews are believed to have moved further north making way to mass migration of Oguz Turks into the region. Their increase in number was supported by a constant flow of Jews from Iran. In the late Middle Ages Jews from Gilan founded a settlement in Oguz. Throughout the medieval epoch Mountain Jews were establishing cultural and economic ties with other Jewish communities of the Mediterranean. Agriculture and fabric trade was their main occupation until Sovietization. Some families practiced polygamy. In 1730, Huseyn Ali, the ruler of the Quba Khanate (then newly separated from the Safavid Empire), issued a decree according to which Jews could own property in the khanate.