Sarawak was a part of the Sultanate of Brunei 200 years ago but as a reward for help in putting down a rebellion, it was ceded to the British adventurer James Brooke who ruled it as his personal kingdom. Kuching was made his capital and headquarters. The Brooke Administration was given the status of Protectorate under Rajah Charles Brooke's rule and was placed behind the Indian Rajs and Princes. The Brooke family ruled Sarawak until the Japanese occupation in December 1941.
Kuching was surrendered to the Japanese forces on 24 December 1941, and Sarawak was part of the Japanese Imperial Empire for three years and eight months, until the official Japanese surrender on 11 September 1945 on board HMAS Kapunda at Kuching. From March 1942 the Japanese operated a POW and civilian internee camp at Batu Lintang, three miles (5 km) outside Kuching.
After the end of World War II the third and last Raja, Sir Charles Vyner Brooke ceded Sarawak to the British Crown in 1946. Sarawak and the British Commonwealth fought an "Undeclared War" with Indonesia to keep Sarawak from being absorbed into Sukarno's Indonesia. The British gave Sarawak independence in 1963 and together with North Borneo, Sabah and Singapore, helped form Malaysia on 16 September 1963. Singapore became an independent nation in 1965.