Washington, D.C., in August 1814. Nonetheless, American troops were able to repulse British invasions in New York, Baltimore and New Orleans, boosting national confidence and fostering a new spirit of patriotism. The ratification of the Treaty of Ghent on February 17, 1815, ended the war but left many of the most contentious questions unresolved. Nonetheless, many in the United States celebrated the War of 1812 as a “second war of independence,” beginning an era of partisan agreement and national pride.