Four years later, he won two decisive victories, first beating Hillary Clinton to become the Democratic Party nominee and then beating Republican Party nominee John McCain to become the president of the United States.