Final answer:
The Civil War did officially end at Appomattox, but the Battle of Palmito Ranch in Texas took place after the surrender.
Step-by-step explanation:
In 1865, the Civil War officially ended at Appomattox Court House, Virginia, with General Robert E. Lee's surrender to General Ulysses S. Grant. However, the last battle of the Civil War occurred after the surrender at Appomattox. The Battle of Palmito Ranch took place in Texas on May 12-13, 1865, over a month after the surrender. Although it had no strategic significance, it is considered the final battle of the Civil War.
Learn more about Ending of the Civil War