In the 1968 presidential election, McCarthy was the first candidate to challenge incumbent Lyndon B. Johnson for the Democratic nomination for president of the United States, running on an anti-Vietnam War platform.