 Complete the following phrase:  In 1205, in the aftermath of the Fourth Crusade, it was taken over by the Franks, who strengthened it further, opening a moat on all three sides. In 1278, the Principality of Achaea pawned it to the local Latin Catholic Archbishop, while the Pope leased it to the Venetians for five years in 1408. The Latin Archbishop remained in possession of the castle until 1430, when it was taken by the Despot of the Morea and future last Byzantine emperor, Constantine Palaiologos, who made extensive repairs to its walls. The castle fell to the Ottoman Turks in 1458, and remained one of their main seats of power in the Peloponnese throughout the Tourkokratia. The Venetians took the castle in 1687 during the Morean War, and kept it until the Morea was 