Tahmasp II

Tahmasp II (1704? – 11 February 1740) was the penultimate Safavid shah of Iran, ruling from 1722 to 1732.

Name
Tahmasp is a New Persian name, ultimately derived from Old Iranian *ta(x)ma-aspa, meaning "having valiant horses." The name is one of the few instances of a name from the Shahnameh being used by an Islamic-era dynasty based in Iran. In the Shahnameh, Tahmasp is the father of Zaav, the penultimate shah of the Pishdadian dynasty.

Biography
Tahmasp was the son of Soltan Hoseyn, the Shah of Iran at the time. When Soltan Hoseyn was forced to abdicate by the Afghans in 1722, Prince Tahmasp wished to claim the throne. From the besieged Safavid capital, Isfahan, he fled to Qazvin, where he on 10 November 1722 declared himself shah and assumed the regnal name of Tahmasp II. He gained the support of the Sunni Muslims of the Caucasus (even that of the previously rebellious Lezgins), as well as several Qizilbash tribes (including the Afshars, under the control of Iran's future ruler, Nader Shah).

Russo-Persian War
In June 1722, Peter the Great, the then tsar of the neighbouring Russian Empire, declared war on Safavid Iran in an attempt to expand Russian influence in the Caspian and Caucasus regions and to prevent its rival, Ottoman Empire, from territorial gains in the region at the expense of declining Safavid Iran.

The Russian victory ratified for Safavid Irans' cession of their territories in the Northern, Southern Caucasus and contemporary mainland Northern Iran, comprising the cities of Derbent (southern Dagestan) and Baku and their nearby surrounding lands, as well as the provinces of Gilan, Shirvan, Mazandaran, and Astrabad to Russia per the Treaty of Saint Petersburg (1723). Tahmasp also eventually gained the recognition of both the Ottoman Empire and Russia, each worried about the other gaining too much influence in Iran.

By 1729, Tahmasp had control of most of the country. Quickly after his foolhardy Ottoman campaign of 1731, he was deposed by the future Nader Shah in 1732 in favor of his son, Abbas III; both were murdered at Sabzevar in 1740 by Nader Shah's eldest son Reza-qoli Mirza.