Two-term U.S. Representative Van Taylor on Wednesday withdrew from a Republican primary run-off race, ending his reelection bid after admitting he had an extra-marital affair with the widow of an American who joined the Islamic State, according to media reports.

Taylor, who represents a northeast Texas district, last year voted for the creation of a special congressional panel to investigate the Jan. 6, 2021 riot at the U.S. Capitol. It’s funny what happens to the people that go after Trump.

Taylor’s withdrawal came one day after he led a pack of five Republicans in a primary race with 48.7% of the vote, just shy of the 50% needed to win his party’s nomination.

With his withdrawal, a former Texas county judge, Keith Self, became the Republican nominee who will run in the Nov. 8 general election for the seat representing an area north of Dallas, including Plano.

The Dallas Morning News quoted Taylor telling supporters he had made “a horrible mistake” by engaging in the affair with the woman.

Taylor’s congressional office in Washington did not immediately respond to a request for comment or say whether he will serve out the remainder of his term.