The outbreak of the Civil War was a direct result of the election of Abraham Lincoln as president of the United States in 1860.
Lincoln's victory on an anti-slavery-expansion platform triggered immediate panic across the Southern states. Many Southerners believed Lincoln would actively interfere with slavery where it already existed, despite his repeated assurances to the contrary. This fear precipitated the secession of seven Deep South states between December 1860 and February 1861, forming the Confederate States of America before Lincoln even took office. The Confederate attack on Fort Sumter in April 1861 marked the formal beginning of hostilities.
While deep-rooted issues like states' rights, economic divergence, and the moral question of slavery created the powder keg, Lincoln's election was the spark that ignited the conflict.