The city struggled for autonomy under Bukharan rule. The Russians helped Bukharan emir to conquer the city in 1870