The states of Malaysia became a colony of the British Empire, starting with Penang in 1786. The peninsular part became independent on 31 August 1957 as the Federation of Malaya. In September 1963, Malaya, Singapore and the Borneo part joined together to become Malaysia. In 1965, Singapore was expelled from the federation and declared independence.