integrity was restored by a native Iranian Turkic Afshar warlord from Khorasan, Nader Shah. He defeated the Afghans, and Ottomans, reinstalled the Safavids on the throne, and negotiated Russian withdrawal from Irans Caucasian territories, by the Treaty of Resht and Treaty of Ganja. By 1736, Nader himself was crowned shah. There are no records of carpet weaving, which had sunk to an insignificant handicraft, during the Afsharid and Zand dynasties. The Qajãr dynasty (1789–1925) In 1789, Mohammad Khan Qajar was crowned king of Persia, the founder of the Qajar dynasty, which provided Persia with a long period of order and comparative peace, and the industry had an opportunity of revival. The three important Qajãr monarchs Fath-Ali Shah Qajar, Naser al-Din Shah Qajar, and Mozaffar ad-Din Shah Qajar revived the ancient traditions of the Persian monarchy. The weavers of Tabriz took the opportunity, and around 1885 became the founders of the modern industry of carpet weaving in Persia. The Pahlavi dynasty (1925–1979) In the aftermath of the Russian Revolution, Persia had become a battleground. In 1917, Britain used Iran as the springboard for an attack into Russia in an unsuccessful attempt to reverse the Revolution. The Soviet Union responded by annexing portions of northern Persia, creating the Persian Soviet Socialist Republic. By 1920, the Iranian government had lost virtually all power outside its capital: British and Soviet forces exercised control over most of the Iranian mainland. In 1925 Rezā Shāh, supported by the British government, deposed Ahmad Shah Qajar, the last Shah of the Qajar dynasty, and founded the Pahlavi dynasty. He established a constitutional monarchy that lasted until the Iranian Revolution in 1979. Reza Shah introduced social, economic, and political reforms, ultimately laying the foundation of the modern Iranian state. In order to stabilize and legitimate their reign, Rezā Shāh and his son Mohammad Reza Pahlavi aimed at reviving ancient Persian traditions. The revival of carpet weaving, often referring to traditional designs, was an important part of these efforts. In 1935, Rezā Shāh founded the Iran Carpet Company, and brought carpet weaving under government control. Elaborate carpets were woven for export, and as diplomatic gifts to other states. The Pahlavi dynasty modernized and centralized the Iranian government, and sought effective control and authority over all their subjects. Reza Shah was the first Persian monarch to confront this challenge with modern weapons. Enforced by the army, nomadism was outlawed during the