The answer is 1865.
The Civil War officially ended on May 9, 1865, although the last battle was fought on April 9 of that same year.
On WorldAtlas.com