 The Ternatan elite at first cooperated with the Catholic foreigners whose superior weaponry and possession of the trading entrepôt of Melaka made then useful allies.However, the behavior of the Portuguese commanders and soldiery soon evoked resentment.Sultan Hairun lived in an uneasy relationship with the Portuguese captains who nevertheless assisted him in defeating the other sultantes in North Maluku, Tidore and Jailolo.