Following his swearing in  as crown prince of the Wahhabi in 1788, Saud ibn Abd al-Aziz moved to expand Wahhabi territory eastward towards the Persian Gulf and Qatar. After defeating the Bani Khalid in 1795, the Wahhabi were attacked on two fronts. The Ottomans and Egyptians assaulted the western front, while the Al Khalifa in Bahrain and the Omanis launched an attack against the eastern front. Upon being made aware of the Egyptian advance on the western frontier in 1811, the Wahhabi amir reduced his garrisons in Bahrain and Zubarah in order to redeploy his troops. Said bin Sultan, ruler of Muscat, capitalised on this opportunity and raided the Wahhabi garrisons on the eastern coast, setting fire to the fort in Zubarah. The Al Khalifa were effectively returned to power thereafter.