At the beginning of the 16th century, the territory of modern-day Kotayk became part of the "Erivan Beglarbegi" within the Safavid Persia. During the first half of the 18th century, the territory became part of the Erivan Khanate under the rule of the Afsharid dynasty and later under the Qajar dynasty of Persia. It remained under the Persian rule until 1827–1828, when Eastern Armenia was ceded to the Russian Empire as a result of the Russo-Persian War of 1826–28 and the signing of the Treaty of Turkmenchay. With the fall of the Russian Empire and after the decisive Armenian victories over the Turks in the battles of Sardarabad, Abaran, and Gharakilisa, the region became part of the independent Armenia in May 1918.