 The return of Khoy to the central government of Iran was during the beginning of Qajar period during Agha Mohammad Khan's reign.Khoy was attacked in 1827 by Russia who was attempting to seize the last of the Caucasian territories of Iran comprising Armenia and what is now Azerbaijan during the Russo-Persian War (1826–1828).The war, which mainly razed in the extremely nearby South Caucasus region eventually happened to moved deeper south as well.