The 5th Regiment , Virginia Volunteer Infantry, Company K, had its origins in the 31st Virginia Militia and was known as the Continental Morgan Guard. Named in honor General Daniel Morgan After acceptance into the 5th Virginia, in June 1861, it retained its militia name and was given the letter designation K. Originally organized in Frederick county, Virginia, the 31st Virginia Militia Company A was the oldest pre-war militia unit to serve within the 5th Virginia Infantry Regiment. The 5th had members that served from Augusta, Clarke, Frederick, Hampshire, Morgan, Rockbridge, and Warren Counties Virginia (Probably others also).
After the ordinance of sucession was ratified, Governor Letcher called for all militia companies in the Shenandoah Valley to move to Harpers Ferry in order to secure the town and its armaments. The 31st Virginia Militia went to Harpers Ferry, where it was organized into the 5th Regiment of Virginia Voluteer Infantry and assigned the designation of Company K. The 5th was then placed under the command of Colonel Kenton Harper who was assigned to Colonel Thomas J. "Stonewall" Jackson's command. The regiment was part of the First Virginia Brigade, which was later known as the famous Stonewall Brigade.
The Continental Morgan Guard, 5th Virginia, Company K, served with distiniction in all of the battles that the Army of Northern Virginia took part in. They participated in the battle of Falling Waters, First Manassas, The Bath/Romney Campaign, Kernstown, Port Republic, Winchester, Gaines Farm, Cedar Mountain, Second Manassas, Chantilly, Sharpsburg, Fredericksburg, Chancellorsville, Second Winchester, Gettysburg, Bealton Station, Payne's Farm and the Wilderness. In the spring of 1864 after heavy losses at Spotsylvania Court House, the 5th Regiment was reorganized. They then fought at the battles of Cold Harbor, Lynchburg, Second Kernstown, Monocacy, Third Winchester, Fisher's Hill, and Cedar Creek. After Cedar Creek they were sent to the Petersburg lines and participated in the battles of Hatcher's Run and Ft. Stedman. The 5th Regiment fought and was paroled at Appomattox Court House, Virginia.
Under the command of General John B. Gordon, the Stonewall Brigade, along with the 5th Virginia, was so highly respected by both Federal and Confederate forces alike that it was given the highest place of honor. On the fateful day of April 9, 1865, they lead the procession at Appomattox Court House, and surrendered the Army of Northern Virginia.