Prince Andrew met with Jeffrey Epstein’s accused madam Ghislaine Maxwell this summer — after the heat had already been turned up on his pedophile pal’s depraved behavior, according to a report.

The Duke of York met close friend Maxwell in the first week of June when she was in London for the Cash & Rocket charity motor rally that ended four days later in Monaco, according to the Daily Mail.

Maxwell, 57, was not in publicity photos taken at the event and was scrubbed from the rally’s website Thursday, the report says. But she shared car number 28 with Nettie Mason, the wife of Pink Floyd rocker Nick Mason, at the event also attended by Paris Hilton and Chloe Green, the report says.

It is thought to be the last time she had been in the UK before she disappeared after Epstein’s July arrest and then his death the following month in a Manhattan lockup.

Andrew admitted during his recent disastrous BBC interview that he last saw his friend in the spring or summer, but insisted they did not talk about mutual friend Epstein “because he wasn’t in the news.”

“We had moved on,” he said of the loyal friend who first introduced him to Epstein, sparking the downfall that this week saw him end his royal duties.

While it was before Epstein’s arrest, the pedophile had been back in the news — with fresh accusers coming forward and also an official probe into his sweetheart deal in Florida following his earlier conviction.

Maxwell was also under renewed pressure at the time, fighting to keep sealed legal documents brought by accuser Virginia Roberts Giuffre, who sued her for publicly denying that she lured her as an underage girl into Epstein’s harem. Maxwell always denied the allegations.