He then defeated Republican nominee John McCain in the general election .
He then was inaugurated as president on January 20 , 2009 .
He then defeated Republican nominee John McCain in the general election , and was inaugurated as president on January 20 , 2009 .