The Confederate States Army (CSA) was organized in February 1861 to fight for the Confederate States of America during the American Civil War. Somewhere between 750,000 and 1.2 million soldiers served the Confederacy in one form or another. The exact numbers are not known because of incomplete and destroyed records. Although it won many battles the Confederate Army lost the war. It could not overcome the Union army's larger numbers and better resources. On April 9, 1865, General Robert E. Lee surrendered what was left of the Army of Northern Virginia to General Ulysses S. Grant at Appomattox Court House, Virginia. While his army was only a part of the total Confederate army, his surrender marked the end of the Confederacy. On June 23, 1865, Georgia's Stand Watie became the last Confederate general to surrender.