Unlike Özdemir's brief but able leadership, Mahmud Pasha was described by other Ottoman officials as a corrupt and unscrupulous governor. He used his authority to take over several castles, some of which belonged to the former Rasulid kings. Mahmud Pasha killed a Sunni scholar from Ibb. The Ottoman historian claimed that this incident was celebrated by the Zaydi Shia community in the northern highlands. Disregarding the delicate balance of power in Yemen by acting tactlessly, he alienated different groups within Yemeni society, causing them to forget their rivalries and unite against the Turks. Mahmud Pasha was displaced by Ridvan Pasha in 1564. By 1565, Yemen was split into two provinces, the highlands under the command of Ridvan Pasha and Tihama under Murad Pasha. Imam al-Mutahhar launched a propaganda campaign in which he claimed that the prophet Mohammed came to him in a dream and advised him to wage ''jihad'' against the Ottomans. Al-Mutahhar led the tribes to capture Sana'a from Ridvan Pasha in 1567. When Murad tried to relieve Sana'a, highland tribesmen ambushed his unit and slaughtered all of them. Over 80 battles were fought. The last decisive encounter took place in Dhamar around 1568, in which Murad Pasha was beheaded and his head sent to al-Mutahhar in Sana'a. By 1568, only Zabid remained under the possession of the Turks.