Paul Manafort lied about the status of his two properties in New York in order to fraudulently obtain a $3.4 million loan, according to testimony Thursday.

Prosecutors dived into the bank fraud allegations against President Trump’s former campaign chairman as his federal trial in Virginia entered its eighth day.

Melinda James, a mortgage assistant at Citizens Bank, told jurors that Manafort falsely claimed that one property, 377 Union St. in Carroll Gardens, belonged to him “free and clear” while another, 29 Howard St. in Soho, was a second residence where his daughter and her husband lived.

But in reality, Manafort rented out the Howard Street loft on Airbnb for more than a year — as an “Amazing full floor loft in SoHo” — and still had a mortgage on the Brooklyn brownstone, James said.

James testified about uncovering Manafort’s alleged lies by perusing insurance documentation for the Brooklyn property and making a quick call to Street Easy, which confirmed the Howard St. address “was listed for rent.”

Prosecutors showed a 2016 email in which Manafort instructed his son-in-law Jeff Yohai to cover up the fact that Howard St. was a rental ahead of a visit from an appraiser.

“Remember, he believes that you and Jessica are living there,” Manafort wrote.

An Airbnb employee also took the stand and said the Manhattan loft was listed on the site from January 2015 through April 2016. Two guests plunked down $1,971 for four nights there in January 2015, while five more paid $16,325 for a 21-night stay that June, the Washington Post reported.

Another Citizens Bank employee, Vice President Peggy Miceli, testified that Manafort wouldn’t have gotten the $3.4 million loan in March 2015 had the bank known about the rental property.

Meanwhile, lawyers for Manafort blamed errors in loan paperwork on Manafort’s former right-hand man Rick Gates, who was handling the process for his boss. They also argued that people live in residences that are rented out on Airbnb.

Earlier in the day, Judge T.S. Ellis apologized for flipping out on prosecutors in front of jurors during testimony from an expert witness on Wednesday.

The red-faced jurist instructed jurors to dismiss his comments.

“I may have made a mistake. It has nothing to do with your consideration in this case,” he said, adding: “This robe doesn’t make me anything other than human.”

Ellis lost his cool at the start of Special Agent Michael Welch’s testimony, after the government witness said he had been in the courtroom for some of the trial.

In a heated exchange with Assistant US Attorney Uzo Asonye, the judge insisted he never authorized Welch to watch the trial — which Asonye challenged.

Witnesses are typically barred from sitting in the courtroom, unless specifically approved by the judge.

The angry outburst prompted prosecutors to file a motion first thing Thursday saying it could be prejudicial to their case.

“While mistakes are a natural part of the trial process, the mistake here prejudiced the government by conveying to the jury that the government had acted improperly and had violated court rules or procedures,” prosecutors wrote.

The government said it expects to wrap up its case by the end of the week.