Farmville is a town in Prince Edward and Cumberland counties in the U.S. state of Virginia. The population was 6,845 at the 2000 census. It is the county seat of Prince Edward County.
The Appomattox River traverses Farmville, along with the High Bridge Trail State Park, a more than thirty-mile long rail trail park. At the intersection of US 15 VA 45 and US 460, Farmville is the home of Longwood University and is the town nearest to Hampden-Sydney College.
Farmville was the object of the Confederate Army's desperate push to get rations to feed its soldiers near the end of the American Civil War. The rations had originally been destined for Danville, but an alert quartermaster ordered the train back to Farmville. Despite an advance of the cavalry commanded by Fitzhugh Lee, the Confederate Army was checked by the arrival of Union cavalry commanded by Gen. Philip Sheridan and two divisions of infantry. General Robert E. Lee's Army of Northern Virginia found itself soon surrounded. He surrendered at Appomattox Court House on April 9, 1865.