Pennsylvania state Sen. Doug Mastriano (R), endorsed by former President Donald Trump days ago, has won the state’s Republican gubernatorial primary and will face Democrat Josh Shapiro in the general election.

Mastriano, who billed himself as an anti-establishment outsider who would investigate Pennsylvania’s 2020 election results, took a large lead with election day voters and swept some counties with more than 50 percent of the vote.

Trump jumped in to back Mastriano last week while the candidate led multiple polls, some by double digits ahead of former Rep. Lou Barletta (R-PA).

Barletta had called on other Republican candidates Bill McSwain and Dave White to drop out of the race and endorse his candidacy to help consolidate support.

Mastriano faces Shapiro in the general election which takes place on November 8.

John Binder is a reporter for Breitbart News. Email him at Follow him on Twitter here