The Baltimore Fencibles successfully defended their city from a British attack during the War of 1812. The battle inspired Francis Scott Key to write the poem that later became the Star Spangled Banner, as he watched from a boat anchored in the harbor and saw the giant American flag fly over the city.