The same year, an agreement known as the General Maritime Treaty was signed between the East India Company and the sheikhs of several Persian Gulf settlements (some of which were later known as the Trucial Coast). It acknowledged British authority in the Persian Gulf and sought to end piracy and the slave trade. Bahrain became a party to the treaty, and it was assumed that Qatar, perceived as a dependency of Bahrain by the British, was also a party to it. Qatar, however, was not asked to fly the prescribed Trucial flag. As punishment for alleged piracy committed by the inhabitants of Al Bidda and breach of the treaty, an East India Company vessel bombarded the town in 1821. They razed the town, forcing between 300 and 400 natives to flee and temporarily take shelter on the islands between Qatar and the Trucial Coast.