Al-Mu'ayyad Muhammad captured Zabid in 1634 and allowed the Ottomans to leave Mocha peacefully.[6] The reasons behind Al-Mu'ayyad Muhammad's success were the tribes' possession of firearms and the fact that they were unified behind him.[7]