Answer:
The last Confederate commander to surrender was Robert E. Lee.
Explanation:
Robert Edward Lee was a general and commander-in-chief of the armed forces of the southern Confederate States of America from 1862 during the American Civil War from 1861 to 1865.
Initially successful against the much larger armies of the northern United States of America, he suffered a major defeat at Gettysburg on July 3, 1863. This became a turning point in the Civil War. On April 9, 1865 he had to capitulate before the federal supreme commander General Ulysses S. Grant, thus ending the war.