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.