Foster's time in command of the Army was short. On February 9, 1864, Maj. Gen. John M. Schofield assumed command of the Department of the Ohio, and then the Army of the Ohio and the XXIII Corps in April. During this time the XXIII Corps and the Army of the Ohio were synonymous. Schofield led the Army during the Atlanta Campaign and pursued Confederate Lt. Gen. John Bell Hood into Tennessee after the fall of Atlanta. At the Battle of Franklin, Schofield inflicted a severe defeat on Hood's army before joining with Maj. Gen. George H. Thomas and the Army of the Cumberland for the Battle of Nashville. On February 9, 1865, Schofield was transferred to command the Department of North Carolina. When Schofield departed to assume departmental command, Maj. Gen. Jacob D. Cox temporarily assumed command of the Army.