First Barbary War: United States Marines and Berbers attack the Tripolitan city of Derna (The "shores of Tripoli" part of the Marines' Hymn).

The "Marines' Hymn" is the official hymn of the United States Marine Corps, introduced by the first director of the USMC Band, Francesco Maria Scala. Its music originates from an 1867 work by Jacques Offenbach with the lyrics added by an anonymous author at an unknown time in the following years. Authorized by the Commandant of the Marine Corps in 1929, it is the oldest official song in the United States Armed Forces. The "Marines' Hymn" is typically sung at the position of attention as a gesture of respect. However, the third verse is also used as a toast during formal events, such as the birthday ball and other ceremonies.

The First Barbary War (1801–1805), also known as the Tripolitan War and the Barbary Coast War, was the first of two Barbary Wars, in which the United States and Sweden fought against the four North African states known collectively as the "Barbary States".The cause of the U.S. participation was pirates from the Barbary States seizing American merchant ships and holding the crews for ransom, demanding the U.S. pay tribute to the Barbary rulers. United States President Thomas Jefferson refused to pay this tribute. Sweden had been at war with the Tripolitans since 1800.