information:highlighting, linguistic:paraphrasing
Janid decline and Manghit takeover

The Ashtarkhanids were replaced by the Uzbek Manghit dynasty, whose members ruled Bukhara until 1920.

The beginning of the strengthening of the political influence of representatives of the Uzbek Manghit aristocracy in the Bukhara Khanate dates back to the beginning of the 17th century. But the real growth of their power occurred after the appointment in 1712 of Khudayar-biy Manghit to the post of ataliq. His son Muhammad Hakim-biy took the post of divanbegi at the court of Abulfayz Khan. In 1715–1716, Khudayar-biy was removed from his post at the initiative of Ibrahim-parvanachi from the Uzbek family of keneges. In 1719–1720, after the flight of Ibrahim-bey from Bukhara, Khudayar-bey, who was in Balkh, was allowed to return to power, giving him the inheritance of Karshi, which was the result of the policy of his son Muhammad Hakim-bey. In 1721, Muhammad Hakim-biy was appointed ataliq.

During the campaign of the Afsharid ruler of Persia Nadir Shah to Maverannahr in 1740, Muhammad Hakim-biy went to peace negotiations with him, thus saving the country from war and strengthening his power. He had five sons: Muhammad Badal-biy, Kurban-mirahur (died in 1733), Muhammad Rahim, Yav Kashti-biy, Barat-sultan. His third son, Muhammad Rahim, joined Nadir Shah and participated in his further campaigns.

Since 1740, the actual power in the Bukhara Khanate was in the hands of the last ataliqs from the Uzbek clan Manghit, Muhammad Hakim-biy (1740–1743), Muhammad Rakhim (1745–1753) and Daniyal-biy (1758–1785). The Bukhara khans turned out to be completely dependent on them.

In 1747, after the assassination of Abulfayz Khan, the actual power was completely in the hands of Muhammad Rahim. Until 1756, the nominal rulers were the Ashtarkhanid babies Abdulmumin Khan (1747–1751), Ubaydallah Khan III (1751–1754) and Abulgazi Khan (1754–1756). Muhammad Rahim himself married the daughter of Abulfayz Khan. Under Mohammad Rahim Bi, the Bukhara Khanate was able to expand to the regions of Hissar, Samarqand, Urgut, the Zarafshan Valley, Kulab, Jizzakh, and Ura Tepe. Within three years he was also able to subdue Zamin, Panjkent, and Falgar. Although Muhammad Rakhim Khan was not a descendant of Genghis Khan, through tough politics and good organization, he was able to achieve recognition of his power, ascend the throne and even take the title of Khan.

Rahim Bi had to suppress the power of the local chieftains. He attacked Turghai Murad Burqut, ruler of Nurota and the Miyankal province between Samarqand and Bukhara. The latter was forced to accept Bukharan sovereignty. In 1753 Rahim Bi attacked Urgut and subjugated Shahr-i Sabz, Hissar, and Kulab. In 1754 he successfully incorporated Khujand, Tashkent, and Turkestan into the khanate. In November 1762, Bukharan armies conquered the town of Charjuy and subdued the Turkmen.