Brunei–Malaysia border 1901 (ceded to the British North Borneo Company which subsequently transferred the territory to Sarawak in 1904). The treaty between the Sultanate and Britain in 1888, which resulted in Brunei becoming a British Protectorate, did not manage to halt the loss of territory. The annexation of the Baram, Trusan and Limbang areas resulted in the current borders of Brunei, with the Limbang annexation, which Brunei had continuously refused to recognise, fragmenting the Sultanate into two non-contiguous territories. Malaysia inherited these borders with Brunei when Sarawak, which had also become a British Protectorate in 1888 and subsequently a Crown Colony after
Malaysia area of . It has land borders with Thailand in West Malaysia, and Indonesia and Brunei in East Malaysia. It is linked to Singapore by a narrow causeway and a bridge. The country also has maritime boundaries with Vietnam and the Philippines. The land borders are defined in large part by geological features such as the Perlis River, the Golok River and the Pagalayan Canal, whilst some of the maritime boundaries are the subject of ongoing contention. Brunei forms what is almost an enclave in Malaysia, with the state of Sarawak dividing it into two parts. Malaysia is the only