In 1787, Ali Pasha became the administrator (Derbendler) of the Trikala sanjak area to which Metsovo belonged. He then became the Pasha of Ioannina.
Ali Pasha Tepelena (1741-1822) created a «state within a state» and ruled over the largest part of the western Ottoman provinces, taking advantage of the weakness of the Sublime Porte. At the peak of his power, he governed a large area including a large chunk of modern Albania and modern Greece. A charismatic leader, he amassed incredible wealth and successfully created a powerful army and an effective administrative mechanism. Tolerant towards the other religions, he appointed many Christians to higher military and administrative positions.