rule. Nevertheless, internal dissension eased the Ottoman conquest, which began with the capture of Ioannina in 1430 and continued with Arta in 1449, Angelokastro in 1460, Riniasa Castle and its environs (in what is now Preveza) in 1463, and finally Vonitsa in 1479. With the exception of several coastal Venetian possessions, this was also the end of Latin rule in mainland Greece. Ottoman rule Epirus was ruled by the Ottomans for almost 500 years. Ottoman rule in Epirus proved particularly damaging; the region was subjected to deforestation and excessive cultivation, which damaged the soil and drove many Epirotes to emigrate so as to escape the region's pervasive poverty. Nonetheless, the Ottomans did not enjoy total control of Epirus. The Himara and Zagori regions managed to successfully resist Ottoman rule and maintained a degree of independence throughout this period. The Ottomans expelled the Venetians from almost the whole area in the late 15th century. Between the 16th and 19th centuries, the city of Ioannina attained great prosperity and became a major center of the modern Greek Enlightenment. Numerous schools were founded, such as the Balaneios, Maroutsaia, Kaplaneios, and Zosimaia, teaching subjects such as literature, philosophy, mathematics and physical sciences. In the 18th century, as the power of the Ottoman Empire declined, Epirus became a de facto independent region under the despotic rule of Ali Pasha of Tepelena, a Muslim Albanian brigand who rose to become the provincial governor of Ioannina in 1788. At the height of his power, he controlled all of Epirus, and much of the Peloponnese, central Greece, and parts of western Macedonia Ali Pasha's campaign to subjugate the confederation of the settlements of Souli met with fierce resistance by the Souliot warriors of the mountainous area. After numerous failed attempts to defeat the Souliotes, his troops succeeded in conquering the area in 1803. On the other hand, Ali, who used Greek as official language, witnessed an increase of Greek cultural activity with the establishment of several educational institutions. When the Greek War of Independence broke out, the inhabitants of Epirus contributed greatly. Two of the founding members of the Filiki Eteria (the secret society of the Greek revolutionaries), Nikolaos Skoufas and Athanasios Tsakalov, came from the Arta area and the city of Ioannina, respectively. Greece's first constitutional prime minister (1844–1847), Ioannis Kolettis, was a native of the village of Syrrako in Epirus and was a former personal physician