President Trump told the New York Times that he doesn’t like Deputy Attorney General Rod J. Rosenstein — simply for the fact that he’s from Baltimore.

In an interview published online Wednesday, the newspaper described how Trump was “irritated” to learn where the former federal prosecutor earned his chops before landing in Washington.

“There are very few Republicans in Baltimore, if any,” Trump said.

According to the Times, the president “expressed discontent” with Rosenstein, who was tasked with appointing the special counsel to oversee the Russia probe earlier this year.

He reportedly claimed that Rosenstein — who was born in Philadelphia and worked in Baltimore as a federal prosecutor — had been playing both sides when it came to the firing of former FBI Director James Comey back in May.

At first, Trump said the deputy attorney general suggested that Comey be fired. He then had a change of heart — and appointed Robert Mueller as special counsel to investigate whether the dismissal was an obstruction of justice.

“Well, that’s a conflict of interest,” Trump told the Times. “Do you know how many conflicts of interests there are?”

Rosenstein, who previously served as the US attorney for Maryland, in the past has described himself as apolitical.

The 52-year-old managed to win bipartisan support earlier this year after he was appointed deputy attorney general.