Under Ottoman rule the region was very stable as the region of Macedonia was a stronghold for the Ottomans for centuries, however this also led to immigration of foreign people into the region and the drafting of Macedonians into the Ottoman army.
The 1800s continued the movements to gain independence in both the regions of Macedonia and Bulgaria, but again these movements didn't have the power to overthrow the Ottoman Empire. In 1903 the Macedonians finally obtained an independent state, but this legal establishment didn't translate to any success on the battlefield as they eventually lost the war ensuing for independence.
In the early 1900s the Ottoman Empire collapsed and the region that is today Macedonia was incorporated into the state of Serbia. After World War I, the region was incorporated into the country called the Kingdom of Serbs, Croats, and Slovenes, which was later renamed Yugoslavia.
During World War II (WWII) Yugoslavia was occupied by the Axis powers and the region that is today Macedonia was divided between the Bulgarians and the Italians (via Albania). One of the largest resistance movements during the war was led by the Yugoslav communists and as WWII concluded, the communist party came to power in Yugoslavia, which again took control of all of modern day Macedonia.