War of 602–628. Medieval period The Arab siege of Nakhchivan in 650 led Theodore Rshtuni to conclude a truce. After the rebellion of 703, Muhammad ibn Marwan had the rebel nobles burnt alive in churches in Nakhchivan and Goghtn in 705. Nakhchivan temporarily came under the control of the Bagratid Kingdom of Armenia in c. 900, but was swiftly taken by Muhammad ibn Abi'l-Saj. The city was the temporary refuge of Atabeg Nusrat al-Din Abu Bakr after his defeat at the Battle of Shamkor in 1195, and Nakhchivan was conquered by the Kingdom of Georgia in 1197. In 1225, Nakhchivan was ruled by al-Maleka al-Jalāliya, daughter of Atabeg Muhammad Jahan Pahlavan. Genoese merchants were known to trade in the city by 1280. The city was conquered by Timur in 1401, but was taken by King George VII of Georgia in 1405. Modern period Nakhchivan was conquered by Shahanshah Ismail I in 1503. Shahanshah Abbas I of Persia reconquered Nakhchivan from the Ottoman Empire in 1603–1604. Nakhchivan was annexed to the Russian Empire per the Treaty of Turkmenchay in 1828. The city became the centre of the Nakhichevan uezd of the Erivan Governorate in 1849. In 1896, Nakhchivan had a population of 7,433, roughly two-thirds of which were Azeri-speaking Muslims and one-third Armenian Christians. According to the 1897 census, Nakhchivan had the status of a county town (). After the February Revolution of 1917, a soviet was formed in Nakhchivan, but the city was under the control of the Special Transcaucasian Committee from March to November 1917, and its successor the Transcaucasian Commissariat from November 1917 to March 1918. Turkey occupied Nakhchivan from June until November, after which the city was occupied by British soldiers in January 1919, and a military governor was appointed to administer Nakhchivan. It was decided that Nakhchivan would be granted to Armenia on 6 April 1919, and the city was annexed on 6 June 1919, however, some months later the city became the center of a regional Muslim uprising and pogrom against its Armenian inhabitants. Britain, France, Italy, and the US, with approval from Armenia and Azerbaijan, agreed on 25 October 1919 to appoint American Colonel Edmond D. Daily as General-Governor of Nakhchivan, elections would be held, and both Armenia and Azerbaijan would withdraw its forces from the territory. However, in March 1920, Turkish forces led by Kâzım Karabekir occupied Nakhchivan. Soviet Russia took control of