He soon moved to Richmond after Confederate President Jefferson Davis appointed him as Attorney General. Benjamin had little to do in that position, but Davis was impressed by his competence and appointed him as Secretary of War. Benjamin firmly supported Davis, and the President reciprocated the loyalty by promoting him to Secretary of State in March 1862, while Benjamin was being criticized for the rebel defeat at the Battle of Roanoke Island.