The history of Serbia covers the historical development of Serbia and of its predecessor states, from the Early Stone Age to the present state, as well as that of the Serbian people and of the areas they ruled historically. Serbian habitation and rule has varied much through the ages, and as a result the history of Serbia is similarly elastic in what it includes.
After early Slavs first appeared in the Balkans in the 6th and 7th centuries, they mixed with local Byzantine subjects, descendants of Paleo-Balkan tribes, such as the Thracian, Dacian, Roman, Illyrian and former Roman colonists. The First Serbian Principality was established in the 8th century by the Vlastimirovići dynasty ruling over modern-day Montenegro, Bosnia, Dalmatia, and Serbia. It evolved into a Grand Principality by the 11th century, and in 1217 the Kingdom and national church (Serbian Orthodox Church) were established, under the Nemanjić dynasty. In 1345 the Serbian Empire was established, spanning most of the Balkan peninsula. In 1540 Serbia became a part of the Ottoman Empire.