The American Civil War ended in 1865. The war began on April 12, 1861, when Confederate forces attacked a U.S.military installation at Fort Sumter in South Carolina. The war lasted for four years and was fought between the Northern states, known as the Union, and the Southern states, known as the Confederacy.