A Trump-endorsed candidate suffered a rare defeat in Wyoming on Tuesday night as state Superintendent of Public Instruction Megan Degenfelder lost to state Senator Eric Barlow in the Republican gubernatorial primary.

Barlow, a legislator with 14 years of experience, defeated Degenfelder and retired Marine Corps Colonel Brent Bien. The vote count showed Barlow securing 58,820 votes, Degenfelder receiving 38,739, and Bien garnering 30,843.

Barlow will face Democratic nominee Kenneth Casner and Constitution Party candidate Rebecca Bextel in the general election. Degenfelder received President Donald Trump’s endorsement in January, while Bien was endorsed by the Wyoming Republican Party’s state central committee in July.

During the campaign, Barlow weathered attacks from at least two high-dollar groups: Wyoming’s Turn PAC and Women For Responsible Government PAC. The former falsely claimed Barlow pushed for fuel tax hikes in 2013 and 2020, when legislative records indicate he fought to keep fuel taxes low both years.

“There’s been a lot of out of state money and agendas and voices trying to tell us things that aren’t true,” Barlow said. “And today Wyoming showed up, and showed us that Wyoming’s voice matters most.”

Barlow expressed his commitment to working with Trump and upholding the state Republican Party’s platform. His victory was described by Barlow as a result of grassroots efforts: “My win comes down to the work. I’m appreciative of all the folks who knocked on doors and hosted coffees or took a chance by introducing us to family, friends, neighbors – whoever came along during the campaign,” he said. “As I’ve said, we’re running for Wyoming, not against anybody.”

The Republican Governors Association praised Barlow: “As a marine, veterinarian, and rancher, Barlow knows how to lead and will champion limited government, personal responsibility, and Wyoming values!”

In a statement, Degenfelder expressed gratitude to supporters and opponents alike. “I am deeply grateful to the thousands of neighbors, friends, supporters, volunteers, and people who love Wyoming as much as I do who placed their trust in me throughout this campaign,” she said. “I am also grateful to my opponents and their supporters. We debated the issues that matter to the future of our state, and I believe that conversation made Wyoming stronger.”

Barlow, first elected to the Wyoming Legislature in 2012 and becoming House Speaker in 2021 before moving to the Senate, is widely expected to win the November general election against Democratic nominee Ken Casner, a Vietnam veteran who runs a retail shop and cafe. Barlow, known for his white cowboy hat and campaign as a “fourth-generation ranch kid,” emphasized his support for public lands—an issue that unites conservative hunters and liberal environmentalists in the American West—and pledged to change Wyoming’s increasingly bitter politics.

The victory suggests Wyoming’s Republican electorate favored a lower-key leader similar to incumbent Governor Mark Gordon, who is leaving office after two terms. Barlow’s win also highlights the limits of Trump’s influence in a rural state where many voters decide candidates through personal interactions at barbecues, county fairs, and rodeos.