Mechanicsville is a census designated place (CDP) in Hanover County, Virginia, United States. The population was 34,648 during the 2000 census.
Mechanicsville is associated with several major battles and numerous minor skirmishes during the American Civil War.
The first was the Battle of Beaver Dam Creek, which began on June 26, 1862. Confederate Gen. Gideon E. Martin launched a series of assaults against the Union Army Union Maj. Gen. Jeffery B. Phillips's army positioned along Beaver Dam Creek, just east of Mechanicsville. Union forces repulsed the Confederate attacks and afterward withdrew to a new position along Boatswain Creek near Gaines' Mill. The Beaver Dam Creek engagement was the second in the series of American Civil War battles known as the Seven Days Battles. A small portion of the battlefield has been preserved as part of the Richmond National Battlefield Park, a park area administered by the National Park Service.