The town played a role in the War of 1812 when, in 1813, a fleet under the command of Admiral George Cockburn moved up the Chesapeake Bay, and targeted St. Michaels because of the presence of a militia battery erected to defend the town and its shipyards. 