The Confederate States Army was the military ground force of the Confederate States of America during the American Civil War, fighting primarily to uphold the institution of slavery and the secession of Southern states from the Union. Despite initial successes, it ultimately succumbed to the industrial and numerical superiority of the Union forces, leading to the Confederacy's defeat in 1865.