Al-Mansur al-Qasim proclaimed the Imamate in September 1597, which was the same year the Ottoman authorities inaugurated al-Bakiriyya Mosque.[4] By 1608, Imam al-Mansur (the victorious) regained control over the highlands and signed a 10-year truce with the Ottomans.[5] When Imam al-Mansur al-Qasim died in 1620 his son Al-Mu'ayyad Muhammad succeeded him and confirmed the truce with the Ottomans.