After almost 500 years of Ottoman rule, Edessa was annexed by Greece on 18 October 1912 during the First Balkan War, following the Hellenic Army's military victory against the Ottomans in the battle of Sarantaporo. At that time, Edessa was already well on its way to becoming a major industrial center in Macedonia. Four large textile factories were in operation by 1914, employing the abundant waterfalls as a source of energy. Prior to World War I, in addition to Greeks, the region of Edessa was also populated by Turks, Bulgarians, Pomaks and Vlachs, but during the population exchange between Greece and Turkey most of the Turks and Pomaks living in Edessa were transferred to Turkey. Large numbers of Greek refugees from Asia Minor were settled in the area in 1923. The population swelled from 9,441 to 13,115 in the 1920s. A large segment of the population specialized in silk production, allowing Edessa to enjoy a high standard of living in the interwar period (1922?1940).