From the 16th century up until the 18th century, Armenians in Shamakhi formed the majority of the population."Shamaki, reckoned the capital of this province, stands on a river which falls into the Caspian sea, and is about sixty-six miles from Derbent towards the south, and ninety-two from Gangea to the south-east. This city was one of the best and most populous of Persia, before it was destroyed by an earthquake. It is, however, supposed to contain near 60,000 inhabitants, chiefly Armenians and strangers, whom the pleasantness of the country and traffic have invited thither" (An Universal History: From the Earliest Accounts to the Present Time, by George Sale, George Psalmanazar, Archibald Bower, George Shelvocke, John Campbell, John Swinton, vol. 43, London, 1765, p. 138) According to the 1917 publication of Kavkazskiy kalendar, Shamakhi—then known as Shemakha—had a population of 27,732 in 1916, including 14,811 men and 12,941 women, 27,259 of whom were the permanent population and 493 were temporary residents. Its ethnoreligous composition was as follows:
