The British were hoping to destroy the port of Baltimore since the well-protected city would be hard to attack. So they decided to attack Fort McHenry in Baltimore. The British naval forces began bombing and firing rockets at the fort. During the many hours of trying to invade, Francis Scott Key wrote The Star-Spangled Banner, originally called the Defense of Fort McHenry. It came clear that the Americans would not surrender their fort and the British left.
Britain sought revenge on America for our past relationships with them and with that, British soldiers raided and burned the Capitol and White House to the ground. It's believed that Dolly Madison was only able to save the Declaration of Independence and a portrait of George Washington. James Madison was able to flee earlier that day. Surprisingly, a storm hit the area above the Capitol and took out the massive flames.
America and Britain came to a realization and signed the Treaty of Ghent. The treaty ended the war and called for abandonment of British forts along the northwestern frontier. The word of the war's end didn't apparently reach everyone and several armies defeated the much larger British forces at the Battle of New Orleans.