The Qawasim found a new ally against their traditional enemy in Oman when the Saudis established a presence in Buraimi, zealous with the new message of their Wahhabi faith. Although there had been a brief alliance between the two enemies, the fragmentation once more of Omani authority resulted in the Qawasim taking sides and backing the Omani Said,
Badr bin Saif Al Busaidi. As a result, the important eastern port of
Khor Fakkan fell to the Qawasim, backed by Saudi forces. However, when the Qawasim Sheikh,
Sultan bin Saqr Al Qasimi, resisted Saudi dominance and pressure to harry shipping in the Gulf, he was removed from power and control over the forts of Fujairah, Bithnah and Khor Fakkan was placed in the hands of Saudi-backed forces. By 1809, the Saudis had appointed
walis, or officers, over the whole Qawasim territory. Sultan bin Saqr Al Qasimi escaped Saudi captivity in
Diriyah and fled to
Mocha and then on to
Muscat, where he was received by his former foe, the
Said bin Sultan Al Busaidi. His arrival coincided with growing exasperation on the part of Oman's ally, the
British, with the Qawasim of Ras Al Khaimah and their constant raids on Omani and other locally flagged shipping. Giving the British further
casus belli, Sultan's presence at Muscat helped to inspire the
1809 Persian Gulf Campaign against the Qawasim at Ras Al Khaimah. The action, although punitive, was to be indecisive. In 1813, an expedition by the Sultan of Muscat to Ras Al Khaimah with the objective of restoring Sultan bin Saqr failed. However, a further sally the next year saw Sultan once again installed as Ruler not of Ras Al Khaimah, but of Sharjah and
Lingeh, the latter being his principle residence. Ras Al Khaimah remained under the effective rule of the Saudi dependent,
Hassan bin Rahmah. However, the
1819 Persian Gulf Campaign proved altogether more decisive and restored Sultan bin Saqr to rule of the Qawasim. Sultan bin Saqr signed the
General Maritime Treaty of 1820 on the 4 February 1820 at
Falayah Fort inland of Ras Al Khaimah as 'Sheikh of Sharjah and Ras Al Khaimah'. Hassan bin Rahmah had earlier signed a preliminary agreement giving up control of Ras Al Khaimah to the British and subsequently signed the 1820 treaty as 'Sheikh of Khatt and Falaiha,
formerly of Ras Al Khaimah'. Focused on consolidating his rule over the west coast and rebuilding the shattered town of Ras Al Khaimah, in 1850 Sultan Bin Saqr Al Qasimi ended the long-running conflict with Muscat when he agreed a compromise with the Sultan of Muscat in which Al Qasimi rule was accepted over the area north of the line between Sharjah and
Khor Kalba on the East coast, but excluding the rough, high land North of the line between
Sha'am on the West and
Dibba on the East coast. This effectively saw Muscat cede the
Shamaliyah to Sharjah, recognising Sultan bin Saq's de facto rule over the area. == Sharqiyin independence ==