On February 18, 1865 Smith's Detachment-Army of the Tennessee became the official XVI Corps. It was composed of three divisions: First (McArthur), Second (Garrard) and Third (Carr). The composition remained virtually the same as it had at Nashville except Brig. Gen. Eugene A. Carr replaced Col. Moore in command of the 3rd Division. It served in the operations of Maj. Gen. Edward Canby against Mobile, Alabama and fought in the battles of Spanish Fort and Fort Blakely. The latter ended on April 9, 1865, the day Lee surrendered at Appomattox. The corps was finally disbanded on July 20, 1865.