 Corbett was then elected to a second term in 2008, serving a total of two non-consecutive tenures as attorney general from 1995 to 1997, and 2005 to 2011.Corbett declared his candidacy for governor in March 2009.He won the Republican nomination and defeated Democratic nominee Dan Onorato, with 54.5% of the vote in the 2010 general election.