On June 18th, 1812, the United States Congress declared war on Great Britain, at the request of President James Madison. The British had blockaded the U.S. coast, seized American ships, and impressed their seamen. Also, the Canadians supported Indian raids along the American frontier. On September 10th, 1813, Commodore Perry defeated the British fleet on Lake Erie. On August 24th, 1814, the British marched into Washington, D.C. and burned the Capital, White House and Treasury. Then on September 10th, 1814, the British attacked Baltimore, successfully defended by American Militia. The Pennsylvania Militia, many from Lancaster, participated. On September 13th, 1814, the British fleet bombarded Fort McHenry for 25 hours before leaving. This inspired Francis Scott Key's poem "The Star-Spangled Banner." General Jackson defeated the British troops at New Orleans on January 8th, 1815. The ratification of the Treaty of Ghent ended the war on February 18th, 1815.