The US Civil War ended on August 20, 1866 by presidential proclamation by Andrew Johnson. In reality the surrendering Confederates from Lee at Appomatox onward merely agreed to a ceasefire and to lay down their weapons and battleflags and go home and "behave." If they did so they would be undisturbed by the Federal authorities.