West Virginia Attorney General Patrick Morrisey has won the Republican nomination to take on Democratic Sen. Joe Manchin III in November in what’s likely to be one of the most closely watched races in the country.

He took 35 percent of the vote in a six-way GOP primary field, besting Rep. Evan Jenkins and former Massey Energy CEO Don Blankenship who finished with 29 percent and 20 percent, respectively.

The defeat of Blankenship, a former convict, is a win for national Republicans who spent upward of a million dollars attacking him.

Trump went as far as to tweet against Blankenship on Monday, saying he’d be unelectable in November and asking voters to “remember Alabama,” a reference to the Senate special election last December when Democrat Doug Jones upset controversial GOP nominee Roy Moore.

With the help of a super PAC supporting him, Morrisey hammered Jenkins throughout the campaign, accusing him of being a liberal. Meanwhile, Jenkins was also hit by national Democrats through a super PAC called Duty and Country.