On March 24, they reached Goldsboro, North Carolina, where they stopped to rest and re-equip. While the 31st was camped at Goldsboro, Ulysses S. Grant accepted the surrender of Robert E. Lee at Appomatox. On April 10, the 31st marched out to continue their advance toward Raleigh, pursuing Joseph E. Johnston and the remnants of the Army of the South. But before they reached Raleigh, they received word that Johnston had surrendered to Sherman and the war was effectively over.