The lyrics of "Maryland, My Maryland" are drawn from an 1861 poem by James Ryder Randall, who was distraught about the shooting of a friend during the Baltimore Riots of 1861, when Confederate sympathizers clashed with Union troops traveling through the city en route to Washington. Four soldiers and 12 civilians were killed and hundreds more were wounded in the first bloodshed of the Civil War.