The British empire was keen to dominate southeast Arabia to stifle the growing power of other European states and to curb the Omani maritime power that grew during the 17th century. The British empire over time, starting from the late 18th century, began to establish a series of treaties with the sultans with the objective of advancing British political and economic interest in Muscat, while granting the sultans military protection. In 1798, the first treaty between the British East India Company and the Albusaidi dynasty was signed by Sayyid Sultan bin Ahmed. The treaty aimed to block commercial competition of the French and the Dutch as well as obtain a concession to build a British factory at Bandar Abbas. A second treaty was signed in 1800, which stipulated that a British representative shall reside at the port of Muscat and manage all external affairs with other states. As the Omani Empire weakened, the British influence over Muscat grew throughout the nineteenth century. 