Under a treaty entered into with the sultans of Sulu and Maguindanao in 1640, the Spaniards recognized the independence of the two sultanates. Thus, the Sulu sultan later became the sovereign ruler of Sabah.
A 10-year civil war broke out in Brunei between two sultans, one of whom—Sultan Muaddin—requested military aid from the Sulu sultan. In 1675, the Brunei civil war ended....