Scott Bauer/ASSOCIATED PRESS The Wisconsin Supreme Court race was too close to call on Tuesday night and will likely go to a recount. Liberal-backed Wisconsin Supreme Court candidate Lisa Neubauer, above, is running against fellow appeals court Judge Brian Hagedorn.

The Wisconsin state Supreme Court race was too close to call Tuesday night, a nail-biter that will likely go to a recount.

Conservative judge Brian Hagedorn had a narrow lead over liberal judge Lisa Neubauer with nearly all the votes in. They were running to win the seat vacated by retiring liberal judge Shirley Abrahamson. The conservatives currently have a 4-3 majority.

“This race is too close to call,” said Tyler Hendricks, the campaign manager for Neubauer, in a statement late Tuesday night. “We are almost assuredly headed to a recount. We are going to make sure every vote is counted. Wisconsinites deserve to know we have had a fair election and that every vote is counted.”

Wisconsin is often considered a bellwether in national politics ― Democratic presidential nominee Hillary Clinton notably lost the state in 2016 ― so the state Supreme Court race has received a close look for what it might say about the 2020 elections. Democrats have been feeling optimistic after winning the governor’s office last year, taking it away from Republican Scott Walker.

The race was technically nonpartisan, but it was clear where the battle lines were drawn. It attracted significant outside spending, with the National Democratic Redistricting Committee ― which is run by former Obama Attorney General Eric Holder ― jumping in on behalf of Neubauer, and Americans for Prosperity ― backed by the Koch network ― supporting Hagedorn.

Hagedorn attracted significant attention for his conservative views on lesbian, gay, bisexual, transgender and queer rights.