The Iban attacked the Japanese force stationed at the Kapit fort at the end of the Second World War in 1945. The Sarawak Rangers which were mostly Dayak participated in the anti-communist insurgency during the Malayan Emergency between 1948 to 1960. The Sarawak Rangers were despatched by the British to fight during the Brunei Rebellion in 1962. Later, the Sarawak Rangers fought against the Indonesian forces during the Confrontation against the formation of the Federation of Malaysia along the border with Kalimantan in 1963.