War of 1812: U.S. declares war on Britain over British interference with American maritime shipping and westward expansion (June 18, 1812). Madison's second inauguration (March 4, 1813). British capture Washington, DC, and set fire to White House and Capitol (Aug. 1814). Francis Scott Key writes Star-Spangled Banner as he watches British attack on Fort McHenry at Baltimore (Sept. 13–14, 1814). Treaty of Ghent is signed, officially ending the war (Dec. 24, 1814).