He served at the height of the Cold War, and the majority of his presidency dealt with managing relations with the Soviet Union. As a member of the Democratic Party, Kennedy represented the state of Massachusetts in the United States House of Representatives and the U.S. Senate prior to becoming president.