 In 1817, newly-elected President James Monroe selected Adams as his Secretary of State.In that role, Adams negotiated the Adams–Onís Treaty, which provided for the American acquisition of Florida.He also helped formulate the Monroe Doctrine, which became a key tenet of U.S. foreign policy.