The Confederate army was under the command of Robert E. Lee, and the Union army was under the command of General Joseph Hooker