He went to Harvard College and became a lawyer. At age 26, he was appointed Minister to the Netherlands and then he went to Berlin. In 1802, he was elected to the United States Senate. Six years later, President James Madison appointed him as Minister to Russia.