Monroe was Madison 's Secretary of State and Secretary of War .
Monroe therefore resigned as Secretary of War and was formally reappointed Secretary of State .