When Abraham Lincoln was elected President in , seven slave states left the Union to form the Confederate States of America, and four more joined when hostilities began between the North and South. A bloody civil war then engulfed the nation as Lincoln vowed to preserve the Union, enforce the laws of the United States, and end the secession. The war lasted for more than four years with a.