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.