During the Battle of Baltimore, Cochrane directed the bombardment of Fort McHenry in Baltimore, which proved ineffectual. He resisted calls by his junior officers to attack the fort more aggressively with frigates at close range. He ordered a diversionary raid by boats to assist the army encamped near Baltimore in their proposed attack on Hampstead Hill (which they cancelled and withdrew), but this diversion had no success. In the bombardment of Fort McHenry, Cochrane's fleet used bomb vessels and a rocket ship for a long-range bombardment to minimize casualties and damage to the fleet from the fort's return fire, which inspired Francis Scott Key's poem that became "The Star-Spangled Banner," the US national anthem.