Following Zahir's defeat and death at the hands of the Ottoman military in 1775, Ali al-Zahir took over Deir Hanna. The Ottoman governor Jezzar Pasha launched a military campaign against Zahir's sons and besieged Deir Hanna. The strength of the village fortress allowed Ali to withstand the siege for several months until Jezzar received reinforcements from the Kapudan Hasan Pasha in July 1776. With the siege intensifying, Ali managed to escape the village and seek safety in Mount Lebanon, settling in the village of Niha. On 22 July, heavy damage to the fort by Ottoman cannon fire forced the remaining defenders to surrender. The surviving defenders of Deir Hanna were expelled from the village with their families by Jezzar, who subsequently demolished large parts of the village's fortress.