MADISON, Wis. (AP) — Turnout in Wisconsin’s primary that saw hotly contested races among both Democrats and Republicans is the highest since 2002.

Based on official results, turnout statewide in Tuesday’s election was nearly 22.1 percent. That is the highest since 22.5 percent in 2002. That year featured a multi-candidate primary for governor on the Democratic side won by Jim Doyle, while then Gov. Scott McCallum faced nominal Republican opposition.

In Marathon County, the turnout was even higher: 29.49 percent.

This year’s primary had eight Democrats running for governor, the most in Wisconsin history. State Superintendent Tony Evers won by a wide margin.

There was also a Republican primary for U.S. Senate which state Sen. Leah Vukmir won by about 6 points over Kevin Nicholson.

In local races, Rep. John Spiros defeated Mosinee Mayor Brent Jacobson in the Republican primary for the 86th Assembly seat by about 1700 votes.

Margaret Engebretson won the 7th Congressional District race in Wisconsin, beating Brian Ewert by about 6,000 votes for the chance to take on U.S. Sen. Sean Duffy in November.

Marathon County Clerk of Circuit Court Shirley Lang will keep her position after topping challenger Benjamin Seidler by about a 61 to 39 percent margin.

Visit the Marathon County elections page for all local results and voting tallies.

Statewide, nearly 994,000 people voted in the primary out of roughly 4.5 million voting-age adults.

Shereen Siewert contributed to this report