 After the war, Pahang became part of the temporary Malayan Union before being absorbed into the Federation of Malayas and gained full independence through the federation.On 16 September 1963, the Malayan federation are being merged into a more larger federation of the Federation of Malaysia with North Borneo, Sarawak and Singapore (expelled in 1965).The federation was opposed by neighbouring Indonesia, which led to the Indonesia–Malaysia confrontation over three years along with the continuous war against local Communist insurgents.