Following the two Balkan Wars of 1912 and 1913 and the dissolution of the Ottoman Empire, most of its European-held territories were divided between Greece, Bulgaria and Serbia. Almost the territory that was to become North Macedonia was annexed by Serbia conforming to the treaty of peace concluded at Bucharest. However, Strumica region was passed to Bulgaria. Following the partition, an anti-Bulgarian campaign was carried out in the areas under Serbian and Greek control. As many as 641 Bulgarian schools and 761 churches were closed by the Serbs, while Exarchist clergy and teachers were expelled. The use of all Macedonian dialects and standard Bulgarian were proscribed. IMRO, together with local Albanians, organised the Ohrid–Debar uprising against the Serbian rule. Within a few days the rebels captured the towns of Gostivar, Struga and Ohrid, expelling the Serbian troops. According to the Carnegie Endowment for International Peace report, a Serbian army of 100,000 regulars suppressed the uprising. Many were killed and tens of thousands refugees fled to Bulgaria and Albania.