History of Russia
The war ended in 1721 when an exhausted Sweden sued for peace with Russia. Peter acquired four provinces situated south and east of the Gulf of Finland, thus securing his coveted access to the sea. There, in 1703, he had already founded the city that was to become Russia's new capital, Saint Petersburg, as a "window opened upon Europe" to replace Moscow, long Russia's cultural center. Russian intervention in the Commonwealth marked, with the Silent Sejm, the beginning of a 200-year domination of that region by the Russian Empire. In celebration of his conquests, Peter assumed the title of emperor, and the Russian Tsardom officially became the Russian Empire in 1721.
Iran–Russia relations
It was not until the 16th century that formal diplomatic contacts were established between Persia and Russia, with the latter acting as an intermediary in the trade between Britain and Persia. Transporting goods across Russian territory meant that the British could avoid the zones under Ottoman and Portuguese control. The Muscovy Company (also known as the Russian Company) was founded in 1553 to expand the trade routes across the Caspian sea. Moscow's role as an intermediary in exchanges between Britain and Persia led Russian traders to set up business in urban centres across Persia, as far south as Kashan. The Russian victories over the Kazan Khanate in 1552 and the Astrakhan Khanate in 1556 by Tsar Ivan IV (r. 1533–84) revived trade between Iran and Russia via the Volga-Caspian route and marked the first Russian penetration of the Caucasus and the Caspian area. Though these commercial exchanges in the latter half of the 16th century were limited in scope, they nonetheless indicate that the fledgling entente between the two countries emerged as a result of opposition to the neighboring Ottoman Empire.
Diplomatic relations between Russia and Iran date back to 1521, when the Safavid Shah Ismail I sent an emissary to visit the Czar Vasili III. As the first diplomatic contacts between the two countries was being established, Shah Ismail was also working hard with the aim of joining forces against their mutual enemy, namely neighboring Ottoman Turkey. On several occasions, Iran offered Russia a deal exchanging a part of its territory (for example Derbent and Baku in 1586) for its support in its wars against their Ottoman arch rivals. In 1552–53, Safavid Iran and the Moscovy state in Russia exchanged ambassadors for the first time, and, starting in 1586, they established a regular diplomatic relationship. In 1650, extensive contact between the two people, culminated in the Russo-Persian War (1651–53), after which Russia had to cede its footholds in the North Caucasus to the Safavids. In the 1660s the famous Russian Cossack "ataman" Stenka Razin raided, and occasionally wintered at, Persia's north coast, creating diplomatic problems for the Russian Czar in his dealings with the Persian Shah. The Russian song telling the tragic semi-legendary story of Razin's relationship with a Persian princess remains popular to this day.