The Al Thani family migrated to Doha from Fuwayrit shortly after Bin Tarif's death in 1847 under the leadership of Mohammed bin Thani. In the proceeding years, the Al Thani family assumed control of the town. At various times, they swapped allegiances between the two prevailing powers in the area: the Al Khalifa of Bahrain and the Bin Saudis.