Vice Chair U.S. Representative Liz Cheney (R-WY) speaks during a public hearing of the U.S. House Select Committee to investigate the January 6 Attack on the U.S. Capitol, on Capitol Hill, in Washington, U.S., July 21, 2022.

NBC News projected that Liz Cheney would lose her Wyoming primary race.

Recent polls show Cheney trailing Hageman by double-digit margins, so the outcome of the primary was expected. NBC News predicted that Hageman would win the GOP primary.

Cheney blamed her loss on her opposition to Trump.

I won this primary two years ago. "I could have done the same thing again."

It was clear. It would have required me to go along with the president's lie. She said that it would have been necessary for her to allow his efforts to attack the foundations of our republic. I wouldn't take that path.

Cheney indicated that she will continue to fight Trump's lies about the election.

Hageman got the most votes in the primary. She got the win. She agreed to concede the race. The election is over. The real work begins now.

Hageman thanks Trump in her victory speech. She said that the support from the very beginning made a difference.

Until recently, Cheney's seat in Congress was more secure. Liz Cheney had been the third-ranking Republican in the House and had won her last election.

After the Jan. 6, 2021, insurrection, a violent mob of Trump's supporters invaded the U.S. Capitol, forcing lawmakers to flee their chambers. The mob believed that the 2020 loss to Biden was the result of widespread fraud. Trump is spreading election conspiracy theories and making false claims about the election.

Cheney was one of just 10 House Republicans to vote to impeach Trump. The vote put a target on their backs, as Trump has worked to get them out of office. Since the ousting of Cheney, eight of the 10 pro-impeachment Republicans have either lost reelection bids or decided to retire from Congress.

Cheney has not shied away from her impeachment vote in order to try to convince Republicans in her overwhelmingly pro- Trump state to keep her in congress.

Cheney frames her vocal opposition as a moral imperative that goes beyond the goal of political self preservation.

"In our nation's 246-year history, there has never been an individual who has posed a greater threat to our republic than Donald Trump," said Cheney's father in one of the campaign ads.

The House select committee investigated the riot. She is the only Republican on the nine-seat probe.

Even though he had the chance to appoint five members to the panel, Kevin McCarthy and other GOP leaders condemned the investigation as a partisan fishing expedition. Two of them were rejected by the speaker.

McCarthy supported efforts to remove Cheney from her position as House Republican conference chair after she criticized Trump.