Contributing to Southeast Asian cosmopolitanism was international commerce. Rulers of Southeast Asian kingdoms relied on maritime trade for their revenue. To govern and tax that trade at their ocean ports, they favored foreign merchants over locals, partly because they feared challenges from rich elites of their own kingdoms and partly because foreign merchants had the cultural and commercial ties needed to carry on profitable trade with their homelands.