The General in Chief of the Armies of the Confederate States, or simply General in Chief, was the commanding general and head of the Confederate States Army from February to April 1865. The office was effectively abolished on April 9, 1865, when General Robert E. Lee surrendered to the Federal forces at Appomattox, Virginia. Despite being the General in chief, Lee was not the highest ranking Confederate general officer.