Republican Executive Councilor Chris Sununu will be New Hampshire's next governor.
Sununu, who will also be the nation's youngest governor at 42, defeated Democrat Colin Van Ostern and Libertarian Max Abramson in a race that wasn't called until about 2:30 a.m. Wednesday.
Sununu received 49 percent of the vote compared to 47 percent for Van Ostern and 4 percent for Abramson, according to The Associated Press.
The Republican from Newfields tallied 353,427 votes compared to 337,141 votes for Van Ostern and 30,916 for Abramson.
Sununu replaces Democrat Maggie Hassan, who reportedly won her U.S. Senate race against Republican incumbent Kelly Ayotte.
The governor's race was too close to call late Tuesday as Sununu held a 4 percent lead over Van Ostern.
Sununu declared victory on Twitter early Wednesday.
"Thank you, New Hampshire!" he said. "It will be an honor to serve as your next governor."
Van Ostern issued a statement about 6 a.m.
"While I am disappointed in the results of the election, I respect the will of New Hampshire voters and I wish Chris Sununu congratulations," he said.
"I am honored and humbled by the hundreds of thousands of New Hampshire citizens who have supported our effort, and I know that our state will move forward as one, to build a brighter future together," Van Ostern said.