Under military and political pressure from the governor of the Ottoman Vilayet of Baghdad, Midhat Pasha, the ruling Al Thani tribe submitted to Ottoman rule in 1871. The Ottoman government imposed reformist (Tanzimat) measures concerning taxation and land registration to fully integrate these areas into the empire. Despite the disapproval of local tribes, Al Thani continued supporting Ottoman rule. Qatari-Ottoman relations, however, soon stagnated, and in 1882 they suffered further setbacks when the Ottomans refused to aid Al Thani in his expedition of Abu Dhabi-occupied Khawr al Udayd. In addition, the Ottomans supported the Ottoman subject Mohammed bin Abdul Wahab who attempted to supplant Al Thani as kaymakam of Qatar in 1888. This eventually led Al Thani to rebel against the Ottomans, whom he believed were seeking to usurp control of the peninsula. He resigned as kaymakam and stopped paying taxes in August 1892.