 Four Democrats (three of whom were state senators), four Republicans, two third-party candidates, and one independent competed in the primary election.Marty McClendon (R) and Cyrus Habib (D) finished as top two and advanced to the general election, where Habib won by 9 points.Incumbent Attorney General Bob Ferguson, elected in 2012 as a Democrat, sought reelection, opposed by Joshua B. Trumbull, who ran as a Libertarian.