In 1833, the Al Maktoum dynasty of the Bani Yas tribe settled at Dubai creek. From that point on, Dubai was a newly independent emirate. It was always struggling with the emirate of Abu Dhabi. An attempt by the Qawasim pirates to take over Dubai was stopped. In 1835, Dubai and the rest of the Trucial States signed a maritime truce with Britain and a "Perpetual Maritime Truce" about twenty years later. Dubai came under the protection of the United Kingdom (keeping out the Ottoman Turks) by the Exclusive Agreement of 1892. Like four of its neighbours, Abu Dhabi, Ras al-Khaimah, Sharjah and Umm al-Qaiwain, its being on the way to India made it an important place.