The Sultanate of Brunei ruled during the fourteenth to the sixteenth century. Its territory allegedly covered the northern part of Borneo and the southern Philippines. European influence gradually brought an end to this regional power. Later, there was a brief war with Spain, in which Brunei was victorious. in the nineteenth century when Brunei lost much of its territory to the White Rajahs of Sarawak, resulting in its current small landmass and separation into two parts. Brunei was a British protectorate from 1888 to 1984.