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