The British governor Stamford Raffles arrived in Singapore on 28 January 1819 and soon recognised the island as a natural choice for the new port. The island was then nominally ruled by Tengku Abdul Rahman, the Sultan of Johor, who was controlled by the Dutch and the Bugis. However, the Sultanate was weakened by factional division: the Temenggong (Chief Minister) of Tengku Abdul Rahman, as well as his officials, were loyal to the Sultan's elder brother Tengku Long, who was living in exile in Riau. With the Temenggong's help, Raffles managed to smuggle Tengku Long back into Singapore. Raffles offered to recognise Tengku Long as the rightful Sultan of Johor, under the title of Sultan Hussein, as well as provide him with a yearly payment of $5000 and another $3000 to the Temenggong; in return, Sultan Hussein would grant the British the right to establish a trading post on Singapore. A formal treaty was signed on 6 February 1819.