his actions at the Battle of Yellow Tavern, the engagement in which Confederate cavalry commander Maj. Gen. J.E.B. Stuart was killed. During Maj. Gen. Philip Sheridan's Valley Campaigns of 1864, Merritt commanded the 1st Division, Cavalry Corps of the Army of the Shenandoah. Arriving at the opportune moment, his division routed the Confederate forces at the Third Battle of Winchester, a deed for which he received a brevet promotion to major general of the volunteers. Upon his return his Cavalry was deployed across the valley, burning, destroying or taking away everything of value or likely to become of value to the enemy. October 5 his division alone destroyed from Port Republic to Toms Brook 630 barns, 47 mills, 410,742 bushels of wheat, 515 acres of corn not counting private homes. He was second-in-command to Sheridan during the Appomattox Campaign and was one of several commissioners for the surrender at Appomattox Court House. He was brevetted major general in the regular army, in April 1865, for bravery at the Battle of Five Forks and the Appomattox Campaign. In June 1865, Merritt was appointed command of Cavalry Forces of the Military Division of the Southwest, commanded by Sheridan. He led the 1st Division of Cavalry to march from Shreveport, Louisiana, to San Antonio, Texas, as part of the Union occupation forces on an arduous 33-day 600-mile march between July 9 and August 11, 1865. On January 28, 1866, Merritt was one of a number of brevetted generals mustered out of volunteer service and returned to their pre-war ranks in the regular army. Frontier duty and West Point After the war's end, Merritt continued to serve in the cavalry along the frontier. He was appointed lieutenant colonel of the newly raised U.S. 9th Cavalry on July 28, 1866, and in July 1867 was sent to command Fort Davis, Texas, garrisoned by six of the regiment's companies. He was made colonel of the 5th Cavalry on July 1, 1876, which he commanded in the Battle of Slim Buttes during the American Indian Wars. As colonel of the 5th Cavalry, Merritt was a member of the court of inquiry which first sat on January 13, 1879 presided over by Colonel John H. King of the 9th Infantry, which was convened to consider the behavior of Major Marcus A. Reno of the 7th Cavalry at the Battle of the Little Bighorn (June 25 to 26, 1876);