The village is famous for the site of the Battle of Appomattox Court House, and contains the house of Wilmer McLean, where the surrender of the Army of Northern Virginia under Robert E. Lee to Union commander Ulysses S. Grant took place on April 9, 1865, effectively ending the American Civil War.
IIRC the first battle of the war was in McLean’s front yard. He lived near Bull Run and afterwards moved to Appomattox where he thought he would be out of harm’s way.
Perhaps that is because that is where the county court house was located ?