Serbia

Republic of south-eastern Europe, federated with Montenegro in Yugoslavia following the independence of Slovenia, Croatia, Bosnia-Herzegovina and Macedonia: formerly a principality (1817-1882), kingdom (1882-1918) and part of the Kingdom of Yugoslavia (1918-1945, until 1929 the Kingdom of the Serbs, Croats and Slovenes). 
Serbs entered their present territory early in the seventh century AD, forming an important part of the patchwork of nationalities that has made the delimitation of national boundaries in the area a hazardous undertaking to this day. Between the twelfth and fifteenth centuries a united Serbian principality rose to become the most powerful state in the region, before succumbing to Ottoman Turkish subjugation. 
Serbia gained its autonomy from the Ottoman Empire in two uprisings,(1804 and 1815), though Turkish troops continued to garrison the capital, Belgrade until 1867. Renewed war alongside Russia against the Turks in 1877 brought full independence and large territorial gains toward the south-east, including Nis, henceforth Serbia's second city (Treaty of Berlin, 1878). 
The new country was, like most of the Balkan lands, overwhelmingly agrarian with little in the way of industry or modern infrastructure. The total population rose from a million in the early 19th century to 2.5 million in 1900, when Belgrade contained 69,000 inhabitants, Nish 24,500 and half a dozen other cities 10-15,000 each. 
Internal politics revolved largely around the dynastic rivalry between the Obrenovich and Karadjordjevich families, descendants respectively of Milosh Obrenovich, {recognised as hereditary prince in 1829) and Kara [Black] George, leader of the 1804 revolt but killed at Milosh's behest in 1817. The Obrenoviches headed the emerging state in 1817-1842 and 1858-1903, the Karadjordjeviches in 1842-1858 and after 1903. 
After the 1880s the dynastic issue became enwined to some extent with wider diplomatic divisions in Europe, Milan Obrenovich aligning his foreign policy with that of neighbouring Austria-Hungary in return for Habsburg support for his elevation to king. The Karadjordjeciches inclined more toward Russia, gaining the throne in June 1903 after a bloody palace coup by army officers hostile to Habsburg rule over neighbouring South Slavs. 
Serbian opposition to Austria-Hungary's October 1908 annexation of Bosnia-Herzegovina brought about a serious European crisis: German and Austro-Hungarian pressure forced Russia to prevail on Serbia (March 1909) to accept the annexation, but Russia undertook to defend Serbia against any future threat to her independence. 
Following Bulgaria's independence (October 1908) from Ottoman overlordship and a successful movement by Greek army officers (August 1909) to steer their government onto a more nationalistic course, Serbia joined with the other two countries and her Serb-populated neighbour Montenegro in invading (October 1912) Ottoman-held Macedonia (then a larger area than today's former Yugoslav republic) and reducing Turkey-in Europe to a small region around Constantinople (now Istanbul. Bulgaria failed in her subsequent attempt (July 1913) to take from her allies territory which she had originally been promised (see Balkan Wars, but to Habsburg alarm at another near-doubling of Serbia's territory was added Bulgarian resentment at having been denied what she saw as her just share of the territorial gains. 
The assassination in the Bosnian capital Sarajevo (June 28, 1914) of the Archduke Francis Ferdinand, heir to the Habsburg throne, by pro-Serb Bosnian conspirators, provoked an ultimatum from Vienna requiring Serbia to allow Austro-Hungarian investigation of the plot on Serbian soil. Serbia's refusal to comply (July 25) was followed three days later by an Austro-Hungarian declaration of war. Russia's resulting mobilisation brought a German ultimatum requiring her to stand down her forces, and war was declared among the great powers in the first week of August. 
Serbia repulsed three Austro-Hungarian invasions (August, September and November-December 1914), in the last of which Belgrade was held temporarily by the enemy. But during 1915 and epidemic of typhus decimated the Serbian army, and renewed invasion in early October, this time involving also German and Bulgarian forces, resulted in the occupation of the whole country. The remnants of Serbia's armed forces retreated into Albania and Macedonia, where British and French forces had landed at Thessaloniki. 
The period of government exile in Macedonia was marked by a significant shift in the balance of political forces, when the pan-Serb militant Col. Dragutin Dimitrijevich ("Apis", a leader of the 1903 coup and head of the shadowy "Black Hand" organisation accused of complicity in the Sarajevo assassination) was tried and executed (June 1917) on charges of plotting against the royal government. Military circles would henceforth be dominated by the royalist "White Hand" faction of Gen. Petar Zhivkovich, later prime minister (1929-1932) of an extra-constitutional monarchical regime. 
A successful Allied offensive in September 1918 secured first Bulgaria's surrender and then the liberation of the occupied territories (November 1918). On November 29 the National Assembly of Montenegro voted for union with Serbia, and two days later an assembly of leaders of Austria-Hungary's southern Slav regions voted to join the new State of the Serbs, Croats and Slovenes. For subsequent history, see Yugoslavia.