John F. Kennedy was the 35th president of the United States, serving from 1961 until his assassination in 1963. He represented Massachusetts in the U.S. House and Senate and defeated Richard Nixon in the 1960 presidential election. As president, Kennedy oversaw events like the Bay of Pigs invasion and Cuban Missile Crisis. He was assassinated in Dallas, Texas in 1963 by Lee Harvey Oswald.