Serbia in the Middle Ages refers to the medieval period in the history of Serbia. The period begins in the 6th century with the Slavic migrations to Southeastern Europe, and lasts until the Ottoman conquest of Serbian lands in the second half of the 15th century. The period is also extended to 1537, when Pavle Bakić, the last titular Despot of Serbia in Hungarian exile, fell in the Battle of Gorjani.