In the early 19th century, Bahrain was invaded by both the Omanis and the Al Sauds. In 1802 it was governed by a 12-year-old child, when the Omani ruler Sayyid Sultan installed his son, Salim, as governor in the Arad Fort. In 1816, the British political resident in the Persian Gulf, William Bruce, received a letter from the Sheikh of Bahrain who was concerned about a rumour that Britain would support an attack on the island by the Imam of Muscat. He sailed to Bahrain to reassure the Sheikh that this was not the case and drew up an informal agreement assuring the Sheikh that Britain would remain a neutral party.