HARTFORD, Conn. (AP) — Jahana Hayes has won reelection for a third term, fending off a challenge from a former state senator in a Connecticut race that national Republicans had targeted and resisting a red wave that overwhelmed some of her fellow Democrats in neighboring New York.

Hayes defeated George Logan, a Republican who repeatedly linked her with President Joe Biden and House Speaker Nancy Pelosi and accused her for being tone deaf about the impact of inflation on voters. The race attracted millions of dollars in outside money, with national Republicans seeing the western Connecticut 5th Congressional District as a key opportunity to crack Democrats’ lock on the state’s congressional delegation.

“National Republicans threw everything at me but the kitchen sink, put millions of dollars in this race,” Hayes told reporters who gathered at her campaign headquarters after the Secretary of the State’s Office announced it had received election results from a remaining community that had been delayed because of a technical issue.

“I had to work twice as hard and really fight to hold this seat. And at the end of the day, I think that was the message that resonated with the people in my community, that I’m one of them and I’m going to continue to fight for them,” she said. "Listen, a win is a win. So, I’m excited. I’ll take it.”

Republicans made gains all around Hayes’ western Connecticut district, picking up at least two seats in Congress just across the state line in New York’s Hudson River Valley.

Logan conceded the race on Thursday morning, saying his campaign found some issues with the voting but decided they were not enough to change the outcome of the election. Despite the loss, he noted how close the GOP came to winning the seat. The difference between the two candidates was roughly 2,000 votes.

“This moment we built, over the last year and a half, put us closer to winning a seat in Congress that no Republican has held since 2006,” he said. “Almost 50% of you voted for me to bring change here and Washington. And for that, I am extremely grateful.”

Hayes, a former National Teacher of the Year, became the first Black woman to represent Connecticut in Congress when she was elected in 2018 by the politically diverse district covering western and central parts of the state.

During the campaign, she focused heavily on abortion rights, arguing Logan couldn’t be trusted on the issue despite promising he wouldn’t support a national ban. Hayes also touted her record of passing legislation and delivering funding to the district, including money for police departments.

“People don’t have to wonder what I’ll do when I’m elected to Congress because people know what I’ve already done,” Hayes said in a debate.

The race marked the first time two Black major party candidates have run against one another for a congressional seat in Connecticut. Logan, the son of immigrants from Guatemala, a community relations director at a water company and a guitarist in a Jimi Hendrix tribute band, portrayed himself as a social moderate and fiscal conservative who would vote against GOP leadership if he felt necessary.

“I’m going to go to Washington and hit the ground running,” he said in a recent debate. “The current House Republican leadership, they know where I stand on the issues.”

Republicans haven’t held a House seat in Connecticut since former U.S. Rep. Chris Shays lost in 2008 to Democratic U.S. Rep. Jim Himes, who still holds the seat representing a southwestern part of the state and was reelected Tuesday. With Hayes’ win, Connecticut’s congressional delegation remains all Democrats.

___

Learn more about the issues and factors at play in the midterms at https://apnews.com/hub/explaining-the-elections

And follow the AP’s election coverage of the 2022 elections at https://apnews.com/hub/2022-midterm-elections

Copyright 2022 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed without permission.