when sir stamford raffles first arrived in singapore in 1819, he signed a treaty with tengku abdul rahman (the local sultan) and tengku hussein (the temmengong which became sultan since he was the elder brother). the sultan and temmengong were paid money for allowing the british to set up a port in singapore.