Montana Democrat Jon Tester has won a third term in the U.S. Senate by beating Republican Matt Rosendale.
Tester won Tuesday's close election despite President Donald Trump taking a personal interest in defeating him.
Trump and his surrogates made repeated trips to Montana after the president vowed last spring that Tester would pay at the polls for sinking his first nominee for Veterans Affairs secretary, White House physician Ronny Jackson.
Trump's comments led to both Republican and Democratic groups spending tens of millions of dollars in an attempt to influence the outcome of the race.
Tester insisted that Montana voters across the political spectrum would support him after examining his record.
The Montana seat was one of 10 held by Senate Democrats seeking re-election in states Trump won in 2016.
Montana's contentious U.S. Senate race remains too close to call with votes still being tallied in key counties.
Election results are coming in Wednesday for major population centers including Missoula, Gallatin, Cascade and Yellowstone counties.
Campaign representatives say Democratic incumbent Sen. Jon Tester is in Great Falls awaiting the results and Republican State Auditor Matt Rosendale is in Helena.
Rosendale put up a strong challenge with a boost from President Donald Trump. The president vowed last spring that Tester would pay at the polls for releasing allegations that toppled Trump's first nominee for Veterans Affairs secretary.
Republican and Democratic groups spent tens of millions of dollars to influence the outcome of the election in a state Trump won by 20 percentage points in 2016.
(Copyright 2018 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)