While Maj. Gen. Henry W. Slocum’s advance was delayed at Averasboro by William J. Hardee’s troops, the Right Wing of Maj. Gen. William T. Sherman’s army under command of Maj. Gen. Oliver O. Howard marched toward Goldsboro. On March 19, 1865, Slocum encountered the Confederates of Gen. Joseph E. Johnston's army who had concentrated to meet his advance near the village of Bentonville. Early that afternoon, Johnston attacked, pushing back a division of the Fourteenth Corps. Desperate fighting south of the Goldsboro Road blunted the Confederate offensive. Elements of the Twentieth Corps were thrown into the action as they arrived on the field. Five Confederate attacks failed to dislodge the Federal defenders and darkness ended the first day’s fighting. On March 20, after receiving word of Slocum's predicament, Sherman arrived with Howard. In response to Sherman's appearance, Johnston contracted his line into a “V” to protect his flanks with Mill Creek to his rear. Sherman was inclined to let Johnston retreat. On the 21st, however, Johnston remained in position while he removed his wounded. Skirmishing heated up along the entire front. In the afternoon, Joseph Mower led his Union division along a narrow trace toward the Confederate left. Mower's infantry slammed into Johnston's line and threatened to cut off the Confedeate retreat. Fierce Confederate counterattacks stopped Mower’s advance and Johnston's line held. Mower withdrew, ending fighting for the day. During the night, Johnston retreated across the bridge at Bentonville. Union forces pursued at first light and encountered Joseph Wheeler’s cavalry acting as a rearguard. Federal pursuit was halted at Hannah’s Creek after a severe skirmish. Sherman, after regrouping at Goldsboro, pursued Johnston toward Raleigh. On April 18, Johnston signed an armistice with Sherman at the Bennett House, and on April 26, 1865, formally surrendered his army.