Organized in Detroit, Michigan, the 5th Michigan Cavalry was mustered into service on August 30, 1862, and left for Washington, D.C., on December 4 of that year. The regiment served in the defenses of the capital until June 1863, when it joined the Cavalry Corps of the Army of the Potomac. Over the next month, the 5th Michigan Cavalry took part in several major battles, including the Battle of Hanover on June 30, the Battle of Gettysburg from July 1 to July 3, and the Battle of Williamsport from July 6 to July 14. The regiment then participated in a series of smaller engagements followed by the Battle of Mine Run from November 26 to December 2.