In April 2011, Johnson announced that he was running for President of the United States. He ran as a Republican. After poor polling numbers in Republican polls and not qualified to attend the debates, Johnson switched his political views and ran as a Libertarian. He beat Libertarian candidate R. Lee Wrights for the nomination at the convention. California Judge James P. Gray was his running mate.