Here is an article that gives the little known history behind the United States' war against the Barbary pirates and its first excursion establishing its tradition as the foremost enforcer of international law. The story is part of the famous "Marine's Hymn." The historical parallels to today's global geopolitical scene are certainly striking.