<P> The Union and Confederacy quickly raised volunteer and conscription armies that fought mostly in the South over the course of four years . The Union finally won the war when General Robert E. Lee surrendered to General Ulysses S. Grant at the Battle of Appomattox Court House, followed by a series of surrenders by Confederate generals throughout the southern states . Four years of intense combat left 620,000 to 750,000 people dead, more than the number of U.S. military deaths in all other wars combined (at least until approximately the Vietnam War). Much of the South's infrastructure was destroyed, especially the transportation systems . The Confederacy collapsed, slavery was abolished, and 4 million slaves were freed . The Reconstruction Era (1863--1877) overlapped and followed the war, with the process of restoring national unity, strengthening the national government, and granting civil rights to freed slaves throughout the country . The Civil War is the most studied and written about episode in U.S. history . </P> <P> In the 1860 presidential election, Republicans, led by Abraham Lincoln, supported banning slavery in all the U.S. territories . The Southern states viewed this as a violation of their constitutional rights and as the first step in a grander Republican plan to eventually abolish slavery . The three pro-Union candidates together received an overwhelming 82% majority of the votes cast nationally: Republican Lincoln's votes centered in the north, Democrat Stephen A. Douglas' votes were distributed nationally and Constitutional Unionist John Bell's votes centered in Tennessee, Kentucky, and Virginia . The Republican Party, dominant in the North, secured a plurality of the popular votes and a majority of the electoral votes nationally, thus Lincoln was constitutionally elected president . He was the first Republican Party candidate to win the presidency . However, before his inauguration, seven slave states with cotton - based economies declared secession and formed the Confederacy . The first six to declare secession had the highest proportions of slaves in their populations, a total of 49 percent . Of those states whose legislatures resolved for secession, the first seven voted with split majorities for unionist candidates Douglas and Bell (Georgia with 51% and Louisiana with 55%), or with sizable minorities for those unionists (Alabama with 46%, Mississippi with 40%, Florida with 38%, Texas with 25%, and South Carolina, which cast Electoral College votes without a popular vote for president . Of these, only Texas held a referendum on secession . </P> <P> Eight remaining slave states continued to reject calls for secession . Outgoing Democratic President James Buchanan and the incoming Republicans rejected secession as illegal . Lincoln's March 4, 1861, inaugural address declared that his administration would not initiate a civil war . Speaking directly to the "Southern States", he attempted to calm their fears of any threats to slavery, reaffirming, "I have no purpose, directly or indirectly to interfere with the institution of slavery in the United States where it exists . I believe I have no lawful right to do so, and I have no inclination to do so ." After Confederate forces seized numerous federal forts within territory claimed by the Confederacy, efforts at compromise failed and both sides prepared for war . The Confederates assumed that European countries were so dependent on "King Cotton" that they would intervene, but none did, and none recognized the new Confederate States of America . </P> <P> Hostilities began on April 12, 1861, when Confederate forces fired upon Fort Sumter . While in the Western Theater the Union made significant permanent gains, in the Eastern Theater, the battle was inconclusive from 1861--1862 . Later, in 1863, Lincoln issued the Emancipation Proclamation, which made ending slavery a war goal . To the west, by summer 1862 the Union destroyed the Confederate river navy, then much of their western armies, and seized New Orleans . The 1863 Union Siege of Vicksburg split the Confederacy in two at the Mississippi River . In 1863, Robert E. Lee's Confederate incursion north ended at the Battle of Gettysburg . Western successes led to Ulysses S. Grant's command of all Union armies in 1864 . Inflicting an ever - tightening naval blockade of Confederate ports, the Union marshaled the resources and manpower to attack the Confederacy from all directions, leading to the fall of Atlanta to William T. Sherman and his march to the sea . The last significant battles raged around the Siege of Petersburg. Lee's escape attempt ended with his surrender at Appomattox Court House, on April 9, 1865 . While the military war was coming to an end, the political reintegration of the nation was to take another 12 years, known as the Reconstruction Era . </P>

Who was the president when the civil war started