After the area came under Russian rule in 1868, Jews were granted equal rights with the local Muslim population. In that period some 50,000 Jews lived in Samarkand and 20,000 in Bukhara. After the Russian revolutions in 1917 and the establishment of the Soviet regime, Jewish religious life (as with all religions) became restricted. By 1935 only one synagogue out of 30 remained in Samarkand; nevertheless, underground Jewish community life continued during the Soviet era.