In the 14th century, the Javanese manuscript ''Nagarakretagama'', written by Prapanca in 1365, mentioned ''Barune'' as the constituent state of Hindu Majapahit, which had to make an annual tribute of 40 katis of camphor. In 1369, Sulu which was also formerly part of Majapahit, had successfully rebelled and then attacked Boni, and had invaded the Northeast Coast of Borneo and afterwards had looted the capital of its treasure and gold including sacking two sacred pearls. A fleet from Majapahit succeeded in driving away the Sulus, but Boni was left weaker after the attack. A Chinese report from 1371 described Boni as poor and totally controlled by Majapahit.