Azerbaijan is home to some 30,000 Jews, residing primarily in Baku and the Qırmızı Qəsəbə settlement in the Quba district of Azerbaijan. Mountain Jews have been living in Azerbaijan for close to 1,500 years; they are the descendants of Persian Jews. During the conquest by the Islamic Caliphate, Arabs settled an allied Jewish tribe in the neighborhoods of Baku; in 1730 Jews were officially allowed the right of residence and property ownership rights in Quba. There are also nearly 5,000 Ashkenazi Jews living mostly in Baku. The first Jewish Sochnut school in the Soviet Union was opened in 1982 in Baku, then capital of Azerbaijan SSR.