American Civil War: Confederate General Robert E. Lee becomes general-in-chief.

Robert Edward Lee (January 19, 1807 October 12, 1870) was an American Confederate general who served in the Confederate States of America during the American Civil War, during which he was appointed the overall commander of the Confederate States Army. He led the Army of Northern Virginia, the Confederacy's most powerful army, from 1862 until its surrender in 1865. During the war, Lee earned a solid reputation as a skilled tactician, for which he was revered by his officers and men as well as respected and feared by his Union Army adversaries.

A son of Revolutionary War officer Henry "Light Horse Harry" Lee III, Lee was a top graduate of the United States Military Academy and an exceptional officer and military engineer in the United States Army for 32 years. During this time, he served throughout the United States, distinguished himself during the MexicanAmerican War, and served as Superintendent of the United States Military Academy. Lee married Mary Anna Custis Lee, great-granddaughter of George Washington's wife Martha. When Virginia's 1861 Richmond Convention declared secession from the Union, Lee chose to follow his home state, despite his desire for the country to remain intact and an offer of a senior Union command. During the first year of the Civil War, he served in minor combat operations and as a senior military adviser to Confederate President Jefferson Davis.

Lee took command of the Army of Northern Virginia in June 1862 during the Peninsula Campaign following the wounding of Joseph E. Johnston. He succeeded in driving the Union Army of the Potomac under George B. McClellan away from the Confederate capital of Richmond during the Seven Days Battles, although he was unable to destroy McClellan's army. Lee then overcame Union forces under John Pope at the Second Battle of Bull Run in August. His invasion of Maryland that September ended with the inconclusive Battle of Antietam, after which he retreated to Virginia. Lee then won two decisive victories at Fredericksburg and Chancellorsville before launching a second invasion of the North in the summer of 1863, where he was decisively defeated at the Battle of Gettysburg by the Army of the Potomac under George Meade. He led his army in the minor and inconclusive Bristoe Campaign that fall before General Ulysses S. Grant took command of Union armies in the spring of 1864. Grant engaged Lee's army in bloody but inconclusive battles at the Wilderness and Spotsylvania before the lengthy Siege of Petersburg, which was followed in April 1865 by the capture of Richmond and the destruction of most of Lee's army, which he finally surrendered to Grant at Appomattox Court House.

In 1865, Lee became president of Washington College (later Washington and Lee University) in Lexington, Virginia; in that position, he supported reconciliation between North and South. Lee accepted "the extinction of slavery" provided for by the Thirteenth Amendment, but opposed racial equality for African Americans. After his death in 1870, Lee became a cultural icon in the South and is largely hailed as one of the Civil War's greatest generals. As commander of the Army of Northern Virginia, he fought most of his battles against armies of significantly larger size, and managed to win many of them. Lee built up a collection of talented subordinates, most notably James Longstreet, Stonewall Jackson, and J. E. B. Stuart, who along with Lee were critical to the Confederacy's battlefield success. In spite of his success, his two major strategic offensives into Union territory both ended in failure. Lee's aggressive and risky tactics, especially at Gettysburg, which resulted in high casualties at a time when the Confederacy had a shortage of manpower, have come under criticism.

The Confederate States of America (CSA), commonly referred to as the Confederate States or simply the Confederacy, was an unrecognized breakaway republic in North America that existed from February 8, 1861, to May 9, 1865. The Confederacy comprised U.S. states that declared secession and warred against the United States during the ensuing American Civil War. Eleven U.S. states declared secession from the Union and formed the main part of the CSA. They were South Carolina, Mississippi, Florida, Alabama, Georgia, Louisiana, Texas, Virginia, Arkansas, Tennessee, and North Carolina. Kentucky and Missouri also had declarations of secession and full representation in the Confederate Congress during their Union army occupation.

The Confederacy was formed on February 8, 1861 by seven slave states: South Carolina, Mississippi, Florida, Alabama, Georgia, Louisiana, and Texas. All seven of the states were located in the Deep South region of the United States, whose economy was heavily dependent upon agriculture—particularly cotton—and a plantation system that relied upon enslaved Africans for labor. Convinced that white supremacy and slavery were threatened by the November 1860 election of Republican candidate Abraham Lincoln to the U.S. presidency, on a platform which opposed the expansion of slavery into the western territories, the Confederacy declared its secession from the United States, with the loyal states becoming known as the Union during the ensuing American Civil War. In the Cornerstone Speech, Confederate Vice President Alexander H. Stephens described its ideology as centrally based "upon the great truth that the negro is not equal to the white man; that slavery, subordination to the superior race, is his natural and normal condition."Before Lincoln took office on March 4, 1861, a provisional Confederate government was established on February 8, 1861. It was considered illegal by the United States federal government, and Northerners thought of the Confederates as traitors. After war began in April, four slave states of the Upper South—Virginia, Arkansas, Tennessee, and North Carolina—also joined the Confederacy. The Confederacy later accepted the slave states of Missouri and Kentucky as members, accepting rump state assembly declarations of secession as authorization for full delegations of representatives and senators in the Confederate Congress; they were never substantially controlled by Confederate forces, despite the efforts of Confederate shadow governments, which were eventually expelled. The government of the United States rejected the claims of secession as illegitimate.

The Civil War began on April 12, 1861, when the Confederates attacked Fort Sumter, a Union fort in the harbor of Charleston, South Carolina. No foreign government ever recognized the Confederacy as an independent country, although Great Britain and France granted it belligerent status, which allowed Confederate agents to contract with private concerns for weapons and other supplies. By 1865, the Confederacy's civilian government dissolved into chaos: the Confederate States Congress adjourned sine die, effectively ceasing to exist as a legislative body on March 18. After four years of heavy fighting and 620,000–850,000 military deaths, all Confederate land and naval forces either surrendered or otherwise ceased hostilities. The war lacked a formal end, with Confederate forces surrendering or disbanding sporadically throughout most of 1865. The most significant capitulation was Confederate general Robert E. Lee's surrender to Ulysses S. Grant at Appomattox on April 9, after which any doubt about the war's outcome or the Confederacy's survival was extinguished, although another large army under Confederate general Joseph E. Johnston did not formally surrender to William T. Sherman until April 26. Contemporaneously, President Lincoln had been assassinated by Confederate sympathizer John Wilkes Booth on April 15, 1865. Confederate President Jefferson Davis's administration declared the Confederacy dissolved on May 5, and acknowledged in later writings that the Confederacy "disappeared" in 1865. On May 9, 1865, US president Andrew Johnson officially called an end to the armed resistance in the South.

After the war, Confederate states were readmitted to the Congress during the Reconstruction era, after each ratified the 13th Amendment to the U.S. Constitution outlawing slavery. Lost Cause ideology, an idealized view of the Confederacy valiantly fighting for a just cause, emerged in the decades after the war among former Confederate generals and politicians, as well as organizations such as the United Daughters of the Confederacy and the Sons of Confederate Veterans. Intense periods of Lost Cause activity developed around the time of World War I, and during the civil rights movement of the 1950s and 1960s in reaction to growing public support for racial equality. Advocates sought to ensure future generations of Southern whites would continue to support white supremacist policies such as the Jim Crow laws through activities such as building Confederate monuments and influencing textbooks to put the Confederacy in a favorable light. The modern display of Confederate flags primarily started during the 1948 presidential election, when the battle flag was used by the Dixiecrats, who opposed the Civil Rights Movement; more recently, segregationists have continued the practice, using the battle flag as a rallying flag for demonstrations.