Michael Cohen pleaded guilty on Thursday to fresh charges that he lied to Congress about a real-estate deal with the Russians that he was trying to broker on behalf of President Trump during the 2016 election.

Cohen, Trump’s former personal attorney who previously pleaded guilty to campaign finances charges, made a surprise appearance in Manhattan federal court to cop to one count of making false statements in a plea agreement with Special Counsel Robert Mueller.

He admitted to downplaying the real-estate deal in Moscow in order to protect Trump, who he and court papers only refer to as “Individual 1.”

“I made the statements to be consistent with Individual 1’s political messaging and to be loyal to Individual 1,” Cohen said in a lengthy statement in Manhattan federal court. He did not indicate that Trump ever directed him to lie.

Cohen’s “materially false statements” about pursuing plans to build a Trump Tower in Russia’s capital were made in written letters and testimony to Congress as part of its probe into Russian interference in the 2016 election.

The then-executive vice president of the Trump Organization falsely claimed the project wrapped up in January 2016, according to his two-page letter dated Aug. 28, 2017, to the Senate and House Intelligence Committees.

But, in fact, Cohen continued to work on the project for Trump into June 2016, according to court documents.

A month later, in public statements, Cohen reiterated that the deal was terminated at that time “before the Iowa caucus and months before the very first primary.”

“This was solely a real estate deal and nothing more. I was doing my job,” he said publicly.

He told the same story in testimony before the Senate in October 2017.

But charging documents filed by Mueller say Cohen tried to “give the false impression that the Moscow Project ended before ‘the Iowa caucus and … the very first primary,’ in hopes of limiting the ongoing Russia investigation.”

Cohen also admitted to lying about agreeing to travel — with Trump — to Moscow in 2016 and arranging the trip with a senior campaign official. The trip never wound up happening.

“I had discussions with Individual 1 with regard to travel to Russia,” Cohen admitted in court.

He also lied to the committee, saying he hadn’t spoken to any Russian officials about the project when he really had a 20-minute conversation with the press secretary for the President Vladimir Putin, according to documents.

The secretive real-estate deal has been at the center of Mueller’s ongoing Russia probe.

Cohen was no longer working for the Trump Organization when he testified before Congress.

He was released without bail on Thursday and said nothing as he left court with his lawyer, Guy Petrillo.

The 52-year-old former Trump fixer has previously pleaded guilty to campaign finance fraud related to hush-money payments made to porn star Stormy Daniels and former Playboy model Karen McDougal, who both claim they had affairs with Trump.

Cohen faces five years behind bars in his latest case.

He is scheduled to be sentenced in the campaign violation case on Dec. 12.

Petrillo said he will request that Cohen he sentenced for his false statements at the same time.