The history of Brunei concerns the settlements and societies located on the north coast of the island of Borneo, which has been under the influence of Indianised kingdoms and empires for much of its history. Local scholars assume that the Islamisation of Brunei started in the fifteenth century, with the formation of the Bruneian Empire, a thalassocracy which covered the northern part of Borneo and the southern Philippines. At the end of the 17th century, Brunei subsequently entered a period of decline brought on by Brunei Civil War, piracy, and European colonial expansion. Later, there was a brief war with Spain, in which Brunei lost Manila and evacuated their capital for a brief period until the Spanish withdrew. The empire lost much of its territory with the arrival of the Western powers, such as the Spanish in the Philippines and the British in Labuan, Sarawak, and North Borneo. The decline of the Bruneian Empire accelerated in the nineteenth century when Brunei gave much of its territory to the White Rajahs of Sarawak, resulting in its current small landmass and separation into two parts. Sultan Hashim Jalilul Alam Aqamaddin later appealed to the British to stop further annexation in 1888. In the same year, the British signed a "Treaty of Protection" and made Brunei a British protectorate until 1984 when it gained independence and prospered due to the discovery of oil. The history of Brunei before the arrival of Magellan's ships in 1519-1522 CE is based on speculation, the interpretation of Chinese sources, and local legends, unless otherwise proven by archaeology. Areas comprising what is now Brunei participated in the Maritime Jade Road, as ascertained by archeological research. The trading network existed for 3,000 years, between 2000 BC to 1000 AD, and was centered in Taiwan and the Philippines. Excavations unearthed at Sungai Limau Manis located approximately 22 km from Brunei capital Bandar Seri Begawan suggest that the Chinese may have traded in the area as early as 835 AD.