On July 9, 1864, at the Battle of Monocacy, Davis was in command of a small detachment ordered to guard bridges. Despite repeated attacks by the Confederates, Davis's detachment held.