US Rep. Thomas Massie’s bid to hold onto his Kentucky House seat ended Tuesday when Ed Gallrein, a president-backed challenger, won the Republican primary and set up a general election rematch in a deeply red district. The race illustrated how Trump’s endorsements have helped reshape GOP primaries in recent weeks, even for incumbents who argue they can align with Trump while dissenting on specific issues.

In his concession speech, Massie told the crowd that the campaign had “stirred up something” and argued that voters were seeking lawmakers who would “vote for principles over party.” He also criticized the idea that members of Congress should always follow political winds, saying that if lawmakers “always vote whichever way the wind is blowing, then we have mob rule,” while adding that if lawmakers follow the Constitution, “we have a republic.”

The contest turned on Gallrein’s message of loyalty to Trump and his claim that Massie had broken with the president. Trump endorsed Gallrein and visited Kentucky in March to boost him, and Gallrein thanked Trump at his victory party in Covington. The challenger, described as a former Navy SEAL, framed his candidacy around military service and pledged fidelity to the president, accusing Massie of forsaking Trump and the party.

Gallrein also moved to define the stakes of the primary as a referendum on Trump-aligned leadership. Massie, by contrast, tried to persuade voters who generally favor Trump that they could support both him and the president, even as he faced criticism for taking positions that conflicted with Trump’s agenda. Massie has served in Congress since 2012 and was among the outspoken holdouts cited in coverage of other GOP challengers who have defeated Trump-targeted incumbents.

Massie’s record included pushing for the release of the Jeffrey Epstein files, criticizing the war in Iran, and voting against the president’s signature tax legislation last year, according to AP’s reporting. The same reporting said the primary became the most expensive U.S. House primary in history, as the campaign attracted national attention and heavy spending from outside groups. After losing, Massie’s concession comments also touched on the financial and political support that flowed against him, including from pro-Israel interest groups.

Trump’s involvement intensified during the final stretch. The AP report said that Massie attempted to recruit a slate of other Republicans, including Rep. Lauren Boebert, to argue to voters that choosing him would not mean abandoning Trump. In response, Trump increased his social media attacks on Massie, including describing Massie as “an obstructionist and a fool,” and Gallrein’s campaign received high-profile attention as well, including a stage appearance with Defense Secretary Pete Hegseth on Monday.

Among the voters described by AP as attending Gallrein’s events was Kim Dees, who said she was “ecstatic” and described Gallrein as “very authentic” and “a man of honor.” AP also reported that Jeanine Thomas, a Union resident who attended Massie’s event, said Massie and Trump shared campaign promises and that Massie “was courageous enough to not toe the line” when it ran against commitments to his constituents, adding that she believed voters punished him for it.

The AP report also described how Trump’s ire shifted toward Republicans backing Massie. It said Trump posted on Truth Social asking for a Republican to challenge Boebert, even though the filing deadline in her home state of Colorado had already passed, and the report included Trump’s quote on the matter: “Anybody that dumb deserves a good Primary fight!” The account further described how Trump’s influence reached other parts of Kentucky’s Republican races as well.

Tuesday also included a separate Kentucky GOP primary in which Republicans chose U.S. Rep. Andy Barr to replace retiring Senate leader Mitch McConnell. Barr, who was endorsed by Trump, defeated Daniel Cameron, a former state attorney general who leaned into Christianity on the campaign trail, in a contest framed as a generational shift for the party.

In another sign of how Trump-linked politics is reshaping candidate lineups, Barr thanked both Trump and McConnell in his victory speech, and the AP report said the candidates navigated their relationships with the senator while positioning themselves for the president’s approval. In the general election, Barr was favored in the Republican-dominated state against Democrat Charles Booker, while Gallrein was favored to win against Democrat Melissa Strange, according to the AP report.