The medieval period in the history of Serbia began in the 6th century with the Slavic migrations to Southeastern Europe, and lasted 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.