John Adams (October 30, 1735 – July 4, 1826) was an American statesman, attorney, diplomat, writer, and Founding Father who served as the second president of the United States from 1797 to 1801. Before his presidency, he was a leader of the American Revolution that achieved independence from Great Britain, and during the war served as a diplomat in Europe. He was twice elected vice president, serving from 1789 to 1797 in a prestigious role with little power. Adams was a dedicated diarist and regularly corresponded with many important contemporaries, including his wife and adviser Abigail Adams as well as his friend and rival Thomas Jefferson.