Latin hegemony in Thebes lasted to 1458, when the Ottomans captured it. The Ottomans renamed Thebes "İstefe" and managed it until the War of Independence (1821, nominally to 1832) except for a Venetian interlude between 1687 and 1699.