Madrid Protocol of 1885

The Madrid Protocol of 1885 is an agreement between Great Britain, Germany and Spain to recognise the sovereignty of Spain over the Sulu Archipelago as well as the limit of Spanish influence in the region. Under the agreement, Spain relinquishes all claim to Borneo.
Another important point regarding the agreement relates to Article IV which guarantees of no restriction on trade to the parties of the protocol within the Archipelago and North Borneo.
North Borneo Dispute.
The North Borneo dispute is the territorial dispute between Malaysia and the Philippines over much of the eastern part of the state of Sabah, a territory known as North Borneo prior to the formation of the Malaysian federation. The Philippines, presenting itself as the successor state of the Sultanate of Sulu, retains a "dormant claim" on Sabah on the basis that the territory was only leased to the British North Borneo Company in 1878, with the sovereignty of the Sultanate (and subsequently the Republic) over the territory never having been relinquished. However, Malaysia considers this dispute as a "non-issue" as it interprets the 1878 agreement as that of cession and that it deems that the residents of Sabah had exercised their right to self-determination when they joined to form the Malaysian federation in 1963.