“...Years later in 1815, President James Madison sent the navy to the Barbary Coast once again. (The phrase “to the shores of Tripoli” from the Marine Hymn refers to this historic battle.)...” [from the original article]
This assertion keeps popping up but it is mistaken.
The line in the USMC hymn refers to the capture of Derna in 1805. After marching 500 miles along the coast of Libya, US Marines commanded by Lt Presely O’Bannon together with civilian William Eaton and Berber mercenaries did battle to depose the Pasha of Tripoli.
Thanks schurmann!