He branded him “Lyin’ Ted” during the GOP presidential primary — but Donald Trump is now considering nominating Texas Sen. Ted Cruz to serve as US attorney general.

The president-elect’s formerly bitter rival was spotted Tuesday at Trump Tower, where the two held a private meeting, according to Bloomberg, which cited a source saying Cruz, 45, may be tapped to be America’s top cop.

Cruz would not comment specifically about the possible gig.

“Cruz is focused on serving Texans in the Senate. He was there today to offer help in promoting the conservative policies that were campaigned on and that he’s long fought for,” Cruz spokeswoman Catherine Frazier told the press.

A former Cruz adviser recommended against taking the job if it’s offered.

“A thought: If Trump declared me a mortal enemy in the primary, I probably wouldn’t accept a fireable position from him,” said Amanda Carpenter, a former communications staffer for the Texas senator.

Others said to be under consideration to run the Department of Justice are Sen. Jeff Sessions (R-Ala.) and Kris Kobach, the secretary of state from Kansas.

Back in February, Trump had a good laugh when a woman at his rally called Cruz a vulgar insult: