The conclusion of the War of 1812 elevated America's naval reputation and marked the start of the "Era of Good Feelings," a period of national pride. With peace restored, President Madison redirected attention to the Barbary pirates, who had exploited American merchant ships during the war. Furious at the enslavement of American sailors, Madison secured Congressional approval to wage war against Algiers in early 1815. Naval leaders like Stephen Decatur achieved swift victories, leveraging military strength to negotiate treaties that ended tribute payments and secured favorable terms for the U.S. Decatur's diplomacy extended to Tunis and Tripoli, compelling restitution for captured ships and releasing enslaved Europeans, bolstering America’s global standing. The Second Barbary War showcased the growing might of the U.S. Navy, earning respect from European powers and silencing earlier British doubts about American resilience. Celebrations of naval triumphs at home solidified national identity, while the treaties reflected America's emergence as a formidable maritime force.