Perry also ran for President of the United States in the 2012 Republican primaries. He was one of the last candidates to enter the race. He was a frontrunner for the nomination during the first month of his campaign, but he did not do well in many of the debates. On January 19, 2012, Perry withdrew his campaign and endorsed Newt Gingrich.