PROVIDENCE, R.I. (WPRI) — Seth Magaziner has won the race for Rhode Island’s second congressional district, 12 News projects.

Magaziner, a Democrat, defeated Republican and former Cranston Mayor Allan Fung in a fierce battle watched nationally.

Watch: Seth Magaziner’s victory speech (story continues below)

“We were behind in every single poll,” Magaziner told a crowd of supporters Tuesday night. “Every single pundit thought we were going to lose, but you never stopped believing and because of you, we got this done.”

“I will bring Rhode Island values to Washington,” he continued. “We are a small state, we are a scrappy state, but we are the best state and it is an honor to represent you.”

Fung and Magaziner were each bolstered by millions of dollars pouring into Rhode Island from their respective national parties, along with high-profile visits from party surrogates like Chris Christie and First Lady Jill Biden, as control of Congress is on the line in Tuesday’s midterm election.

Fung lives in Cranston, where he previously served as the city’s mayor. His tenure leading the city’s “comeback” was a top focus of his campaign.

He appeared crestfallen as he addressed his supporters Tuesday evening prior to conceding to Magaziner.

“I’m proud of our campaign,” Fung said. “It was a tough one. We saw, not only just in Rhode Island, but New England is just a very deep blue area … we gave it our best effort.”

Watch: Allan Fung addresses supporters (story continues below)

When asked about his political future, Fung said he “just wants to sleep.”

“I’ll figure out what I do in the future after I get some sleep,” he said.

Magaziner, Rhode Island’s general treasurer who moved from Providence to Cranston during the campaign, has focused on keeping the seat blue, citing concerns about how a Republican-controlled Congress would address abortion rights and other issues.

The second congressional district is in the western half of Rhode Island, with major cities including Cranston, Warwick and half of Providence.

Sen. Jack Reed congratulated Magaziner and said he looks forward to working with him in Congress.

“Voters chose wisely and said no to millions of dollars in attack ads,” Reed said. “Seth focused on substance and solutions over slogans. He didn’t play the lazy blame game. He listened to voters and connected with them and they responded, and I know he’ll use that same formula to effectively represent them in the House, bring their concerns to Washington and get results for Rhode Island.”

William Gilbert, a member of the Moderate Party, also ran as a third-party candidate. Gilbert said he was seeking to get away from the hyper-partisanship of the two major parties.