The American Civil War lasted a little over four years, beginning on April 12, 1861, with the Confederate bombardment of Fort Sumter in South Carolina, and ending in May 1865. The major Confederate armies surrendered in April 1865, with General Robert E. Lee's surrender at Appomattox Court House on April 9, 1865, marking a significant end to the conflict. The last battle was fought at Palmito Ranch, Texas, on May 13, 1865, and the final Confederate surrender occurred on June 23, 1865