Texas Rep. Will Hurd — the only black Republican in the House — announced on Thursday that he won’t seek reelection next year.

He revealed the decision on Twitter, saying he’s leaving “Congress to solve problems at the nexus between technology and national security.”

“While Congress has a role in these issues, so does the private sector and civil society,” he added.

Hurd in 2014 quit his former job as an undercover CIA officer to run for office. He’s been serving in the 23rd Congressional District of Texas since 2015.

A large portion of his district borders Mexico — and its been the target of Democrats looking to flip the seat.

The incumbent lawmaker narrowly defeated Democrat challenger Gina Ortiz Jones in 2018.

He becomes the sixth Republican lawmaker — and third House GOP member from Texas — to step down in the past two weeks.

Hurd recently made the news for condemning President Trump’s attacks on Rep. Elijah Cumming’s and his Maryland district.

“I wouldn’t be doing those. I wouldn’t be tweeting this way,” the Texas Republican said on ABC’s “This Week,” in reference to Trump’s description of Baltimore as a “rat and rodent infested mess.”