Joe Biden has won Wisconsin, a critical swing state needed and hard-fought by him and President Trump.

The Associated Press called the race around 2:15 p.m. EST.

But, Wisconsin's close margins may put the state in recount territory. The state has no automatic recounts, but a losing candidate can request a recount if the winner's margin is less than or equal to 1%. Unlike other states, a presidential candidate must request a recount within a day of the official results being reported.

On Wednesday afternoon, Trump campaign manager Bill Stepien said they would demand a recount prior to when the race was called.

"Despite ridiculous public polling used as a voter suppression tactic, Wisconsin has been a razor thin race as we always knew that it would be," Stepien said in a statement. "There have been reports of irregularities in several Wisconsin counties which raise serious doubts about the validity of the results. The President is well within the threshold to request a recount and we will immediately do so.”

By 11:30 a.m. EST on Wednesday, Wisconsin Elections Commission Administrator Meagan Wolfe confirmed all the votes had been counted in the state, meaning Biden would have achieved victory, winning by 20,697 votes.

On Wednesday, the Washington Post and ABC News published data showing Biden leading President Trump by 17 points among likely voters in Wisconsin. The Ipsos/Reuters poll gave the former vice president a 9-point lead.

In actuality, Biden's ability to secure around 20,000 votes is far closer than predicted. It's close to the margin Trump won in 2016, when he flipped the state by less than 23,000 votes.

Wisconsin is one of a handful of states that are critical for Trump or his Democratic challenger Biden's path to the White House. In 2016, Trump surprisingly broke the "blue wall," securing victories in Wisconsin, Michigan, and Pennsylvania, which had elected Democratic presidents for several election cycles before going for the now-president.

Wisconsin had the longest Democratic streak, having previously backed a Republican in 1984, when President Ronald Reagan cruised to reelection.

Both candidates campaigned several times in Wisconsin throughout the duration of the campaign cycle, with Biden and Trump both making it one of their final stops of the weekend prior to Nov. 3.

A RealClearPolitics average of polls just before the election found Biden with a 6.6-point average lead over Trump.

Wisconsin Democrats have been highly active in grassroots organizing for the 2020 election since just after the 2018 midterm elections. Organizers have cited their goals of making inroads with Trump-won areas of the state as well as making a stronger effort to reach communities of color early in the cycle.

Beyond politics, Wisconsin this year garnered national attention as a hot zone for the coronavirus pandemic. It also saw a series of riots in Kenosha after 29-year-old Jacob Blake, who is black, was shot by a local police officer in August.

Trump often campaigned on painting Democrats as weak on law and order, tying them to property destruction, looting, and severe episodes of rioting the country saw over the year, which escalated from protests amid several incidents of police brutality toward black people.

Biden made a starkly different pitch, calling for racial healing and police reforms amid the shooting of Blake. He also advocated for stricter public health measures to combat the pandemic, including a variation of a national mask mandate and a more restrictive approach to public gatherings until cases lessen.

Within just days of the election, half of all registered voters in Wisconsin had already cast early ballots. By Sunday morning, 62.4% of the turnout for the 2016 election had voted, setting an outlook for record-high turnout.