After it was revealed that Ali Pasha's Albanians attempted to assassinate Ismail Pasobeis, the leader of the Sultan's army, the Sultan ordered Ali Pasha's removal from Ioannina. To win back the Sultan's favor, the latter revealed to him the existence of the Friendly Society and the plans of the Greeks to revolt, but even so, he failed to annul the Sultan's order. Ali Pasha refused to obey the order and abandon his pashalik, so the Sublime Porte began to gather an army force against him. Ali Pasha's mutiny gave the Souliotes the right to return to their villages, from which they had been exiled, since the Sultan gave this option to those who had been expelled or wronged by the Pasha in an effort to undermine his influence on Epirus. The Souliotes were even encouraged by Pasobeis to liberate their villages from Ali. However, the Turk-Albanians of the Sultan’s guard, who took part in the occupation of the villages of the Souliotes, planned their annihilation and allied themselves with Ali Pasha and his faithful Turk-Albanians (January 1821). Finally, in January 1822, Ali was defeated and killed on the island of the Lake of Ioannina.