who was john f kennedy up against
United States presidential election, 1960
The incumbent President , Republican Dwight D. Eisenhower , was not eligible for re-election after serving the maximum two terms allowed by the Twenty-second Amendment .