Some time before 1810, the transitory ruler of Qatar Rahmah ibn Jabir Al Jalhami allied himself with the Saudis, offering them partial dominion over Qatar, including the right to collect taxes from Qataris. The Al Khalifa of Bahrain along with the Sultan of Muscat razed Saudi fortifications in Qatar and Bahrain in 1811, effectually shifting the suzerainty of Qatar from the Saudis to the Al Khalifa.[8] At this time the Saudis were embroiled in a drawn-out war with the Ottoman Empire in the west, so they did not dedicate many troops towards Qatar's defense nor did they contest the Al Khalifa immediately afterward. Nonetheless, over the proceeding years, certain Qatari tribes would pledge allegiance to the Saudis, preferring their rule over the Al Khalifa.