Returning to public service, Parnell won the Republican primary race for lieutenant governor in 2006 and became Palin's running mate in her 2006 gubernatorial campaign, where the Palin and Parnell ticket defeated former Democratic Governor Tony Knowles. Parnell was sworn in as lieutenant governor of Alaska in December 2006 and later assumed the governorship after Palin resigned in July 2009. Parnell was elected to a full term as governor in 2010, defeating former State Representative Ethan Berkowitz in the general election. Parnell is the first unelected Alaska governor to be elected in his own right. He was narrowly defeated for a second term in 2014 by the "unity ticket" of Republican-turned-Independent Bill Walker and Democrat Byron Mallott.