The history of the ethnic Macedonians has been shaped by population shifts and political developments in the region of Macedonia. After the end of the Ottoman Empire in the early 20th century, the Socialist Republic of Macedonia was created after World War II, a state in the framework of the Socialist Federal Republic of Yugoslavia.