After the fall of Constantinople and the establishment of the Latin Empire in 1204, John Doukas' illegitimate son, Michael I Komnenos Doukas, founded the Despotate of Epirus, choosing the city of Arta as its capital. In 1224, Michael's half-brother Theodore captured the Kingdom of Thessalonica from the crusaders and proclaimed himself as the legitimate Byzantine emperor ("basileus") in Thessalonica. However, Theodore was defeated and captured by John II Asen in the Battle of Klokotnitsa in 1230, and the Empire of Thessalonica quickly declined. During Theodore's captivity, his brother Manuel ruled over Thessalonica, succeeded by Theodore's sons John and Demetrios. Eventually, the city was lost to the Nicaean emperor John III Doukas Vatatzes in 1246, marking the end of the rule of the Angeloi in Thessalonica.