John Quincy Adams (/ˈkwɪnzi/ (listen); July 11, 1767 – February 23, 1848) was an American statesman, diplomat, lawyer, and diarist who served as the sixth president of the United States, from 1825 to 1829. He soon began to exhibit his literary skills, and in 1779 he initiated a diary which he kept until just before he died in 1848. Until the age of ten, Adams grew up on the family farm in Braintree, largely in the care of his mother. On his way to the Netherlands, he met with John Jay, who was then negotiating the Jay Treaty with Great Britain. Adams supported the Jay Treaty, but it proved unpopular with many in the United States, contributing to a growing partisan split between the Federalist Party of Alexander Hamilton and the Democratic-Republican Party of Thomas Jefferson.