On April 6, 1865, the Battle of Sailor's Creek took place six miles north as Lee's army, retreating westward from Amelia Courthouse to Farmville by way of Deatonsville, was attacked by Sheridan, who surrounded Ewell's Corps. After a fierce action the Confederates were overpowered, and Ewell, other generals, and several thousand men were captured. This was the last major engagement between Lee's and Grant's armies.