Following Persian aggression towards Zubarah, the
Utub and other Arab tribes drove the Persians from Bahrain in 1783. Al Jalahma seceded from the Utub alliance sometime before the Utub annexed Bahrain in 1783 and returned to Zubarah. This left the Al Khalifa tribe in undisputed possession of Bahrain, who then transferred their power base from Zubarah to
Manama. They continued to exert authority over the mainland and paid tribute to the
Wahhabi to ward off challenges on Qatar. The town came under threat by the
Wahhabi from 1780 onward due to the intermittent raids launched on the Bani Khalid strongholds in
Al-Hasa. The Wahhabi thought the population of Zubarah would conspire against their regime with the help of the Bani Khalid. They also believed that its residents practiced teachings contrary to the Wahhabi doctrine and regarded the town as an important gateway to the Persian Gulf. Saudi general Sulaiman ibn Ufaysan led a raid against the town in 1787. Five years later, a massive Wahhabi force conquered Al Hasa, forcing many refugees to flee to Zubarah. Wahhabi forces besieged Zubarah and several neighboring settlements in 1794 as punishment for accommodating asylum seekers. 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. The Wahhabi allied themselves with the Al Jalahmah tribe in Qatar, who engaged the Al Khalifa and Omanis on the eastern frontier. In 1811, upon being made aware of advancements by the Egyptians on the western frontier, the Wahhabi amir reduced his garrisons in Bahrain and Zubarah to re-position his troops.
Said bin Sultan of Muscat capitalized on this and attacked the Wahhabi garrisons in Bahrain and Zubarah. The fort in Zubarah was set ablaze, and the Al Khalifa were effectively restored to power. Until the late eighteenth century, all of the principal towns of Qatar, including Al Huwaila,
Fuwayrit,
Al Bidda and Doha were situated on the east coast. Doha developed around the largest of these, Al Bidda. The population consisted of nomadic and settled
Arabs and a significant proportion of
slaves brought from East Africa. A survey carried out by the British in 1825 notes that Qatar did not have a central authority and was governed by local sheikhs. Doha was ruled by the
Al-Buainain tribe. In 1828, a member of the Al-Buainain murdered a native of Bahrain, prompting the Bahraini sheikh to imprison the offender. The Al-Buainain tribe revolted, provoking the Al Khalifa to destroy their fort and expel them from Doha. The expulsion of the Al-Buainain granted the Al Khalifa greater jurisdiction over Doha.
Bahraini–Saudi contention Desiring to keep surveillance over the proceedings of the
Wahhabis, Bahrain stationed a government official named
Abdullah bin Ahmad Al-Khalifa on the coast of Qatar as early as 1833. Residents of the peninsula were susceptible to skirmishes between the forces of the sheikh of Bahrain and the Egyptian military commander of
Al-Hasa. At the end of 1839 or the beginning of 1840, the governor of Al-Hasa dispatched troops to lay waste to Qatar following the refusal of the
Na'im tribe of Zubarah to pay the demanded
tribute. The assassination of a governor in
Hofuf prematurely ended the expedition before the forces could reach the country. After he defeated the resistance troop, bin Khalifa demolished
Al Bidda and moved its inhabitants to Bahrain. He sent his brother, Ali bin Khalifa, as an envoy to Al Bidda. However, he did not exercise any administrative powers, and local tribal leaders remained responsible for the internal affairs of Qatar.
Mohammed bin Thani and
his tribe migrated from
Fuwayrit to
Al Bidda in 1848. Prior to this migration, each tribe and settlement had its independent leader, and there was no documented instance of their unification in battle. The concept of a unified land or nation was not present. However, with Mohammed bin Thani's arrival, Qatar began to gain significant economic and political weight. In 1851, Qatar served as a flashpoint for a conflict between
Faisal bin Turki, Imam of the
Emirate of Najd, and Muhammad bin Khalifa. Faisal had long sought to gain control of Bahrain and had previously attempted, and failed, to invade the island. In May 1851, Faisal launched his third attempt to capture Bahrain, ordering his forces to proceed towards Al Bidda, Qatar, which was intended to be used as a staging area for an invasion of Bahrain. In response, Ali bin Khalifa, the Bahraini representative in Qatar, called on all men of fighting age to defend Al Bidda, as well as sending for help from
Saeed bin Tahnun Al Nahyan of
Abu Dhabi. Mohammed bin Thani served as one of the leaders of the Qatari forces. From 2 June to 4 June 1851, the
Battle of Mesaimeer was fought between Qatari-Bahraini and Wahhabi forces. On the first day, a skirmish of gunfire ensued between the Qatari-Bahraini forces and those of Faisal ibn Turki without any close combat. According to British and oral reports, the Wahhabis were routed by the allied forces on this day. On the second day, Qatari forces, led by Mohammed bin Thani's son
Jassim, engaged Faisal's troops in a fierce battle while the Bahraini forces retreated to their ships, observing from the sea. On the third day, Faisal's forces retreated to their camp at
Mesaimeer. Mohammed bin Thani advised Ali bin Khalifa to make peace with Faisal, fearing a renewed attack once they regrouped. This suggestion was rebuffed by Ali bin Khalifa, who perceived it as betrayal. Shortly after the battle ended, Mohammed bin Thani negotiated a separate peace agreement with Faisal in which he agreed to be under Wahhabi governance provided that he remains chief of Al Bidda. Faisal obliged his request, leading to Muhammad bin Khalifa imposing a blockade of Al Bidda after receiving news of this. On 25 July, 1851, Saeed bin Tahnun negotiated a treaty between the Bahrainis and Wahhabis, in which the Bahrainis would pay an annual
zakat to Faisal in exchange for his renouncement of any claims to Qatar and return of Al Bidda to the chieftainship of Ali bin Khalifa. Mohammed bin Thani, as party to this agreement, agreed to relinquish his position. This agreement led to Faisal's departure for Al-Hasa on 26 July, 1851. Despite the peace agreement being signed earlier, Al Bidda's blockade was only lifted on 2 August, 1851.
Economic repercussions In a move which angered Mohammed bin Khalifa, Faisal bin Turki provided a safe haven for Abdullah bin Ahmed's sons in
Dammam in 1852. Consequently, the Bahrainis attempted to drive away residents of Al Bidda and Doha who were suspected of being loyal to the Wahhabi by imposing an economic
blockade on the inhabitants, which prevented them from engaging in
pearl hunting. The blockade continued until the end of the year. In February 1853, the Wahhabi began marching from
Al-Hasa to Al Khor. After Bahrain received assurance from Qatar that they would not cooperate with the Wahhabi forces if they crossed their borders, they sent Ali bin Khalifa to the mainland to act as a collaborator with the local resistance. A British-mediated peace agreement was reached between the two parties in 1853. In February 1862, the treaty was ratified by the
Indian government. Following the involvement of the British, the sway that the Al Khalifa tribe held over Qatar's affairs began declining.
Mohammed bin Thani was described by
Gifford Palgrave as the acknowledged governor of the Qatar Peninsula in 1863. Some of
Al Wakrah's inhabitants were forced to vacate the town by the Bahraini sheikh in April 1863 due to alleged links with the Wahhabi. The town's chief, Mohammed Bu Kuwara, was taken into custody on a similar charge. In 1866, a report by the British revealed that Qatar was paying an annual
zakat of 4,000 German krones to the Wahhabi, in encroachment of the 1861 British treaty. The report also contended that the Al Khalifa were taxing the people of Qatar for the same annual payment.
Qatari–Bahraini War In June 1867, Ali bin Khalifa, the Bahraini representative in Qatar and brother of
Muhammad bin Khalifa, seized a
Bedouin from
Al Wakrah and deported him to Bahrain. Mohammed bin Thani demanded his release, but Ali bin Khalifa refused. This prompted Mohammed bin Thani to expel him from Al Wakrah. Upon receiving news of this, Muhammad bin Khalifa released the Bedouin prisoner and expressed his desire for renewed peace talks.
Jassim bin Mohammed Al Thani, the son of Mohammed bin Thani, traveled to Bahrain to negotiate on his behalf. He was imprisoned upon arrival, and a large number of ships and troops were soon sent to punish the people of Al Wakrah and
Al Bidda.
Abu Dhabi joined on Bahrain's behalf due to the conception that Al Wakrah served as a refuge for fugitives from Oman. Later that year, the combined forces sacked the two aforementioned Qatari cities with 2,000 men in what would come to be known as the
Qatari–Bahraini War. A British record later stated: In either late 1867 or June 1868, the Qataris attempted to launch a
counterattack against the Bahrainis, however, they were defeated in the Battle of Damsah. An account of the battle written in 1933 by
C.U. Aitchison, under-secretary of the
British Raj, is as follows: Contemporary sources state the 1868 attack was particularly violent, in some 1,000 were killed and 60 ships were destroyed. The aftermath of the Battle of Damsah saw the Qatari forces execute a strategic withdrawal, prompting a pursuit by Bahraini troops to the settlement of Al Wakrah. At this location, the Qatari contingent mounted a defense, successfully encircling the Bahraini forces and capturing two of their commanders. The engagement concluded with a negotiated exchange of prisoners, following which Jassim bin Mohammed returned to his seat of power in Doha. ==Ottoman control (1871–1913)==