Troy Robin King (born August 22, 1968) is the former attorney general of the state of Alabama. He previously served as an assistant attorney general and a legal adviser to both Republican governors Bob Riley and Fob James. King was appointed by Governor Bob Riley in 2004, when William Pryor resigned to accept a federal judgeship. He then defeated Mobile County District Attorney John Tyson Jr., in the 2006 election by a 54-46% margin. He sought a second term but was defeated in the Republican primary, securing 40 percent of the vote to the roughly 60 percent by Luther Strange.