In the early afternoon of June 26, 1862, Mechanicsville was held by Union outposts when A. P. Hill reached it from the north. The Unionists were quickly driven back to their position on Beaver Dam Creek. Then D. H. Hill, followed by Longstreet, crossed the Chickahominy on this road and joined A. P. Hill.