In the 1890s, threatened by the Ottoman Empire, ruler Sheikh Mubarak Al Sabah signed an agreement with the British government in India (subsequently known as the Anglo-Kuwaiti Agreement of 1899) making Kuwait a British protectorate. This gave Britain exclusive access and trade with Kuwait, while denying Ottoman provinces to the north a port on the Persian Gulf. The Sheikhdom of Kuwait remained a British protectorate until 1961.