The enemy of Donald Trump’s enemy is his friend.

Ex-AIG CEO Hank Greenberg was spotted Monday at Trump Tower, where he stopped by for a sit-down with the president-elect.

Greenberg and Trump share a common foe: New York Attorney General Eric Schneiderman.

Schneiderman has filed lawsuits against both men, taking on Trump for his short-lived school, Trump University, as well as his charity, the Trump Foundation.

The state’s top law enforcement officer has accused Greenberg of “financial fraud and manipulation during [his] tenure at A.I.G.”

Schneiderman currently has a case pending against Greenberg at New York’s highest court.

It is not known what Trump and Greenberg discussed in their private meeting.

Reps for Trump and Schneiderman did not immediately return requests for comment.