"While the Enterprises mission is ostensibly "to explore strange new worlds, to seek out new life and civilizations, to boldly go where no one has gone before," its function is really more akin to that naval vessels in the early age of mercentalism. In describing the similarities, series creator Gene Roddenberry noted: "In those days ships of the major powers were assigned to patrol specific areas of the world's oceans. They represented their governments in those areas and protected the national interests of their respective countries. Out of contact with the admiralty office back home for long periods of time, the captains of these ships had very broad discretionary powers. These included regulating trade, fighting bush wars, putting down slave traders, lending aid to scientific expeditions conducting exploration on a broad scale, [and] engaging in diplomatic exchanges and affairs...."
January 1, 1970
https://en.wikiquote.org/wiki/Admiralty_law