The American Civil War was the war of 1861-1865 between the northern Union and the southern Confederacy over slavery and the survival of the federal union. Through the mid-century the quarrel over slavery in the new western states sharpened; in 1860 the anti-slavery Lincoln won the presidency, seven states led by South Carolina seceded, and in February 1861 they formed the 'Confederate States of America'; in April the guns at Fort Sumter opened the war. Four years of fighting, setbacks first and victory after: Antietam in 1862-1863, Lincoln's Emancipation Proclamation (1863) and the great turning at Gettysburg, then Grant and Sherman driving south in total war until Lee surrendered at Appomattox in April 1865. The cost was unprecedented: about 620,000 dead — the bloodiest of all America's wars — and the South's economy and cities in ruins. The political results ran deep: the Thirteenth Amendment (1865) abolished slavery, the Fourteenth (1868) established citizenship and due process, the Fifteenth (1870) gave Black men the vote; federal sovereignty stood above states' rights from then on, the constitutional frame of the United States rewritten — and the cause of abolition won its final victory worldwide. With Reconstruction (1865-1877) came segregation's rise instead, and the war's legacy — union, equality, race — is argued still.