The last Byzantine emperor, Constantine XI Palaiologos, was despot at Mystras before he came to the throne. Demetrius Palaeologus the last despot of Morea, surrendered the city to the Ottoman emperor Mehmed II in 1460. As Mezistre, it was the seat of a Turkish sanjak. The Venetians occupied it from 1687 to 1715, but otherwise the Ottomans held it until 1821 and the beginning of the Greek War of Independence. It was abandoned under King Otto for the newly rebuilt town of Sparta.