 On April 9, Confederate General Robert E. Lee surrendered to Union General Ulysses Grant, and on April 14, Confederate General Joseph Johnston surrendered to Union General William T. Sherman, ending the Civil War.On May 15, Louisville became a mustering-out center for troops from midwestern and western states.On June 4, 1865, military authorities established the headquarters of the Union Armies of the West in Louisville.