He was elected as Virginia's 46th Attorney General in the November 2009 general election. From 2002 until January 16, 2010 he was a Republican member of the Senate of Virginia, representing the 37th district in Fairfax County. He holds degrees in engineering, law and commercial policy, and co-founded a law firm.