Democrat Eric Sorensen has won a toss-up U.S. House of Representatives race in Illinois, The Associated Press projected Thursday.

Sorensen ran against Republican Esther Joy King to replace retiring U.S. Rep. Cheri Bustos in Illinois' 17th Congressional District. King lost narrowly against Bustos in 2020.

Fox News Power Rankings listed the race a toss-up.

PORTLAND 'DEFUND POLICE' COMMISSIONER JO ANN HARDESTY OUSTED IN ELECTION AGAINST CHALLENGER RENE GONZALEZ

Illinois U.S. House candidates Republican Esther Joy King and Democrat Eric Sorensen are seen in a split image

Republican Esther Joy King and Democrat Eric Sorensen faced off in a tight race for the open 17th Congressional District seat that represents much of northwestern Illinois, including Rockford, the Quad Cities and Peoria.  (John J. Kim/Chicago Tribune/Tribune News Service via Getty Images)

Sorensen has said he will focus on addressing inflation and securing pro-choice policies during his first term in Congress.

The northwestern Illinois district stretches from Rockford in the north to Peoria and Bloomington in central Illinois.

King conceded to Sorensen Wednesday.

"I thank her for running, and while we disagreed on the issues, we both have a passion for service," Sorensen said.

TWO DAYS AFTER MIDTERMS, SLOW ARIZONA VOTE COUNT EXASPERATES TWITTER: ‘SCHOOL CHILDREN CAN COUNT FASTER’

Illinois lost one of its 18 House seats after the 2020 census. The Midwestern state's two U.S. senators are also Democrats who won re-election easily Tuesday.

CLICK HERE TO GET THE FOX NEWS APP

Sorenson will be the first LGBTQ person to represent Illinois in Congress, according to the organization LGBTQ Victory Fund, which works to increase the number of LGBTQ elected officials.

The Associated Press contributed to this report.