After military service as commander of the Motor Torpedo Boats PT-109 and PT-59 during World War II in the South Pacific, Kennedy represented Massachusetts' 11th congressional district in the U.S. House of Representatives from 1947 to 1953 as a Democrat. Thereafter, he served in the U.S. Senate from 1953 until 1960. Kennedy defeated Vice President and Republican candidate Richard Nixon in the 1960 U.S. presidential election. At 43 years of age, he is the youngest to have been elected to the office, the second-youngest President (after Theodore Roosevelt), and the first person born in the 20th century to serve as president. A Catholic, Kennedy is the only non-Protestant president, and is the only president to have won a Pulitzer Prize. Events during his presidency included the Bay of Pigs Invasion, the Cuban Missile Crisis, the building of the Berlin Wall, the Space Race, the African-American Civil Rights Movement, and early stages of the Vietnam War.