Rubuta ci gaba ga wannan sakin layi - A yakin duniya na biyu, sojojin Japan suka mamaye
kuma sun mamaye Malaya, Arewacin Borneo, Sarawak, da Singapore sama da shekaru uku. A wannan lokacin, tashin hankali na kabilanci ya tashi kuma kishin ƙasa ya ƙaru. Tallafin jama'a ga 'yancin kai ya karu bayan da sojojin Allied suka sake mallakar Malaya. Bayan yakin basasa na Burtaniya don haɗa kan gwamnatin Malaya a ƙarƙashin mulkin mallaka guda ɗaya da ake kira "Malayan Union" ya gamu da adawa mai ƙarfi daga Malays, waɗanda suka yi adawa da raunana sarakunan Malay da kuma ba da ɗan ƙasa ga ƙabilancin Sinawa. Unionungiyar Malayan, wacce aka kafa a 1946, kuma ta ƙunshi duk mallakar Burtaniya a cikin Malay Peninsula ban da Singapore, an rushe shi da sauri kuma an maye gurbinsa a ranar 1 ga Fabrairu 1948 ta Tarayyar Malaya, wanda ya maido da ikon mallaka na sarakunan jihohin Malay a ƙarƙashin kariyar Burtaniya.