Murad IV conquered the city on 8 August 1635. Returning in triumph to Constantinople, he opened the "Yerevan Kiosk" (Revan Köşkü) in Topkapı Palace in 1636. However, Iranian troops commanded by Shah Safi retook Yerevan on 1 April 1636. As a result of the Treaty of Zuhab in 1639, the Iranians reconfirmed their control over Eastern Armenia, including Yerevan. On 7 June 1679, a devastating earthquake razed the city to the ground. In 1724, the Erivan Fortress was besieged by the Ottoman army. After a period of resistance, the fortress fell to the Turks. As a result of the Ottoman invasion, the Erivan Province of the Safavids was dissolved. Following a brief period of Ottoman rule over Eastern Armenia between 1724 and 1736, and as a result of the fall of the Safavid dynasty in 1736, Yerevan along with the adjacent territories became part of the newly formed administrative territory of Erivan Khanate under the Afsharid dynasty of Iran, which encompassed an area of . The Afsharids controlled Eastern Armenia from the mid 1730s until the 1790s. Following the fall of the Afsharids, the Qajar dynasty of Iran took control of Eastern Armenia until 1828, when the region was conquered by the Russian Empire after their victory over the Qajars that resulted in the Treaty of Turkmenchay of 1828. Russian rule During the second Russo-Persian War of the 19th century, the Russo-Persian War of 1826–28, Yerevan was captured by Russian troops under general Ivan Paskevich on 1 October 1827. It was formally ceded by the Iranians in 1828, following the Treaty of Turkmenchay. After 3 centuries of Iranian occupation, Yereven along with the rest of Eastern Armenia designated as the "Armenian Oblast", became part of the Russian Empire, a period that would last until the collapse of the Empire in 1917. The Russians sponsored the resettlement process of the Armenian population from Persia and Turkey. Due to the resettlement, the percentage of the Armenian population of Yerevan increased from 28% to 53.8%. The resettlement was intended to create Russian power bridgehead in the Middle East. In 1829, Armenian repatriates from Persia were resettled in the city and a new quarter was built. Yerevan served as the seat of the newly formed Armenian Oblast between 1828 and 1840. By the time of Nicholas I's visit in 1837, Yerevan had become an uezd ("county"). In 1840, the Armenian Oblast was dissolved and