It came under British sovereignty after the signing of the Anglo-Dutch Treaty of 1824, and had been part of the Straits Settlements until 1946.
The territory changed hands in 1824 after Britain signed a treaty with the Netherlands, and it remained part of the Straits Settlements until 1946.