Lee, following his defeat in the Battle of Gettysburg, had sent a letter of resignation to Confederate President Jefferson Davis, who refuses the request upon receipt on August 8.