The defending Confederate army failed , leading to Lee 's surrender to Grant at Appomattox Court House on April 9 , 1865 .
Lee surrendered to Grant on April 9 , 1865 , near Appomattox Court House .