Eastern Kara Khanids, and then later passed to the western one. Molana Wajeeh-ud-Din Khujandi was a Muslim scholar of Khujand who migrated to Dilli. Hafiz Khawaja Sheikh Mehmood (Moena Doz) was his nephew. His daughter Bibi Qursam Khatoon was mother Of Baba Fareed ud Din Ganj e Shakr. Karakhitans conquered it in 1137, but it passed to Khwarazmshahs in 1211. In 1220, it strongly resisted the Mongol hordes and was thus laid to waste. In the 14th century, the city was part of the Chagatai Khanate until it was incorporated into the Timurid dynasty' in the late 14th century, under which it flourished greatly. The Shaybanid dynasty of Bukhara next annexed Khojand, until it was taken over by the Kokand Khanate in 1802, however, Bukhara regained it in 1842 until it was lost a few decades later to Russia. Russian Empire In 1866, as most of Central Asia was occupied by Russian Empire, the city became part of the General Governorate of Turkestan, under Tsarist Russia. The threat of forced conscription during World War I led to protests in the city in July 1916, which turned violent when demonstrators attacked Russian soldiers. Soviet Union During the initial period of Soviet power in Central Asia, Khujand was part of the Turkestan ASSR that was created in 1918. When the latter was dismantled in 1924 on the principle of national delimitation, the city became a part of the Uzbek Soviet Socialist Republic. In 1929, the previously created Tajik Autonomous Soviet Socialist Republic (contained within the Uzbek SSR) was upgraded to union-level republic as the Tajik Soviet Socialist Republic, and in order to gain a sufficient number of inhabitants (preferably from the titular ethnic group) the city of Khujand and the surrounding area, inhabited mainly by ethnic Tajiks, was transferred by Soviets from the Uzbek SSR to the Tajik SSR. The city was renamed Leninobad on 10 January 1936 and it remained part of the Soviet Union until 1991. Now a part of the Tajik SSR, Leninobad became the second-largest city in the republic, though the city's location within the historically more urban, prosperous, and commercially central Fergana Valley and a long history of being a densely populated urban centre meant that Khujand and its region were sometimes viewed as more developed and cosmopolitan than the newly designated capital and boom-town of Dushanbe/Stalinabad (the latter was a small town of 6,000 when the