The Confederate president Davis and his Cabinet stayed at Danville, 140 miles southwest of Richmond, until April 10, when, hearing of General Lee's surrender at Appomattox Court House further northeast, it continued its flight farther south.