John Quincy Adams was the sixth President of the United States from 1825 to 1829, He was the son of John Adams and Abigail Adams and had a long career as a lawyer, diplomat, and politician. He played a key role in helping President James Monroe shape the foreign policy of the United States, which is known as the Monroe Doctrine.