The United States engaged in gunboat diplomacy with Morocco during the First Barbary War in 1803 as part of the reaffirmation of the Moroccan-American Treaty of Friendship. The treaty was ratified by the Confederation Congress in 1787. 

 

 

 
 
 
 
 
 

During the First Barbary War, pirates and corsairs were using Moroccan ports as safe havens between raids on European and American shipping. The USS Constitution, Nautilus, New York, and Adams were involved in the gunboat diplomacy. 

 

 

 
 
 
 
 
 

The Moroccan-American Treaty of Friendship is the longest unbroken treaty relationship in United States history. 

 

 

 
 
 
 
 
 

Milestones in the History of U.S. Foreign Relations - Office of the ...

 

Barbary Wars, 1801–1805 and 1815–1816 - Office of the Historian

1801-1829. Barbary Wars, 1801–1805 and 1815–1816.

U

A treaty of war, or peace treaty, is a legal agreement between two or more countries that ends a state of war. Treaties are written agreements that are governed by international law. They are often signed by the leaders of countries and are a promise to stop fighting and work towards peace. 

Treaties can also be used for other purposes, such as: Settling land disputes, Establishing new countries, Creating alliances, and Preventing the building of nuclear weapons. 

Some examples of treaties include: 

Treaty of Saint-Germain

Signed in 1919, this treaty dissolved the Austro-Hungarian Empire and forced Austria to accept the independence of over 60% of its territory 

Antarctic Treaty

Signed in 1961, this treaty preserves Antarctica for scientific and peaceful purposes and prevents it from being used for military activity 

Treaties are not always permanent and can be broken if one side changes their mind.