Rubuta ci gaba don wannan sakin layi - mamayewar Jafananci a lokacin Yaƙin Duniya na II ya kawo ƙarshen mulkin Biritaniya a Malaya. Aikin da aka yi na Malaya, Arewacin Borneo da Sarawak daga 1942 zuwa 1945 ya haifar da kishin kasa. Bayan da Jafananci suka mika wuya daga Malaya saboda cin nasarar da Allies suka yi, gwamnatin Burtaniya ta kafa kungiyar Malayan a shekarar 1946 amma bayan adawa da kabilun Malays, an sake tsara kungiyar a matsayin Tarayyar Malaya a shekarar 1948 a matsayin jihar kariya har zuwa 1957. A cikin tsibirin, Jam'iyyar Kwaminis ta Malayan ta dauki makamai a kan Birtaniya kuma tashin hankali ya haifar da sanarwar dokar ta baci
tsawon shekaru 12 daga 1948 zuwa 1960. Babban martani na soja ga tawayen kwaminisanci da kuma Tattaunawar Baling a 1955 ya haifar da kafa 'yancin kai ga Malaya a ranar 31 ga Agusta 1957 ta hanyar tattaunawar diflomasiyya da Birtaniyya. Tunku Abdul Rahman ya zama Firayim Ministan Malaysia na farko. A cikin 1960, ƙarshen gaggawa ya faru yayin da barazanar kwaminisanci ta ragu kuma sun janye zuwa kan iyakokin tsakanin Malaya da Thailand.