 Together with Singapore, it became a Crown colony under the direct control of the British Colonial Office in London until it was incorporated into the Malayan Union.The British East India Company gained Penang in 1786 and established a trading post.It was ceded by the Sultan of Kedah to ensure the former's protection against the threat posed by its Siamese and Burmese neighbors.