transferred to Alfred Dent, who in 1881 formed the North Borneo Provisional Association Ltd to administer the territory. In the following year, Kudat was made its capital but due to frequent pirate attacks, the capital was moved to Sandakan in 1884. To prevent further disputes over intervention, the governments of the United Kingdom, Spain and Germany signed the Madrid Protocol of 1885, recognising the sovereignty of the King of Spain over the Sulu Archipelago in return for the relinquishment of all Spanish claims over northern Borneo. The arrival of the company brought prosperity to the residents of northern Borneo, with the company allowing indigenous communities to continue their traditional lifestyles, but imposing laws against headhunting, ethnic feuds, slave trade, and piracy. North Borneo then became a protectorate of the United Kingdom in 1888 despite facing local resistance from 1894 to 1900 by Mat Salleh and Antanum in 1915. Second World War The Japanese forces landed in Labuan on 3 January 1942, during the Second World War, and later invaded the rest of northern Borneo. From 1942 to 1945, Japanese forces occupied North Borneo, along with most of the rest of the island, as part of the Empire of Japan. The British saw Japanese advances in the area as motivated by political and territorial ambitions rather than economic factors. The residing British and the locals were compelled to obey and gave in to the brutality of the Japanese. The occupation drove many people from coastal towns to the interior, fleeing the Japanese and seeking food. The Malays generally appeared to be favoured by the Japanese, although some of them faced repression, whilst other races such as the Chinese and indigenous peoples were severely repressed. The Chinese were already resisting the Japanese occupation, especially with the Sino-Japanese War in Mainland China. Local Chinese formed a resistance, known as the Kinabalu Guerillas, led by Albert Kwok, with broad support from various ethnic groups in northern Borneo such as Dusun, Murut, Suluk and Illanun peoples. The movement was also supported by Mustapha Harun. Kwok along with many other sympathisers were, however, executed after the Japanese foiled their movement in the Jesselton Revolt. As part of the Borneo Campaign to retake the territory, Allied forces bombed most of the major towns under Japanese control, including Sandakan, which was razed to the ground. The Japanese ran a brutal prisoner of war camp known as Sandakan camp