In addition to their relationship with the local elite class on the coast, pirates also had complicated and often friendly relationships and partnerships with the dynasty itself, as well as with international traders. When pirate groups recognized the authority of the dynasty, they would often be allowed to operate freely and even profit from the relationship. There were also opportunities for these pirates to ally themselves with colonial projects from Europe or other overseas powers. Both the dynasty and foreign colonial projects would employ pirates as mercenaries to establish dominance in the coastal region. Because of how difficult it was for established state powers to control these regions, pirates seem to have had a lot of freedom to choose their allies and their preferred markets. Included in this list of possible allies, sea marauders and pirates even found opportunities to bribe military officials as they engaged in illegal trade. They seem to have been incentivized mostly by money and loot, and so could afford to play the field with regards to their political or military allies.