John Sidney McCain III August 29 1936 August 25 2018 was an American politician and United States Navy officer who served as a United States senator from Arizona from 1987 until his death in 2018 He previously served two terms in the United States House of Representatives and was the Republican nominee for president of the United States in the 2008 election which he lost to Barack Obama