However, between the 11th and 15th centuries, Aragatsotn along with the rest of the historic territories of Armenia suffered from the Seljuk, Mongol, Ag Qoyunlu and Kara Koyunlu invasions, respectively. At the beginning of the 16th century, Aragatsotn became part of the "Erivan Beglarbegi" within the Safavid Persia. During the first half of the 18th century, Aragatsotn 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 by the Russian Empire as a result of the Russo-Persian War of 1826–28 and the signing of the Treaty of Turkmenchay.