Prince Andrew has kept in constant contact with accused madam Ghislaine Maxwell even as they both became increasingly embroiled in the Jeffrey Epstein scandal, according to a report Sunday.

The prince had a secret meeting with Epstein’s ex at Buckingham Palace in June — and has been talking to her throughout the escalating scandal that saw him dumped of royal duties, according to The Sun.

“They have remained constantly in touch by phone and email,” a source told the UK paper.

“They talk regularly. If he wasn’t in the spotlight at the moment he would have found a way to meet up with her.”

Andrew’s downfall was in part sparked by his loyalty to Epstein, 57, remaining friends and staying in his Manhattan mansion even after he was convicted of sex with underage girls.

Now the 59-year-old prince has remained close to Maxwell, according to The Sun, even after she is reportedly at the heart of an ongoing FBI investigation over allegations that she recruited young girls for the late pedophile.

“Andrew has always been very stubborn and as far as he is concerned both he and Ghislaine have done nothing wrong and so why should anything get in the way of a friendship that has lasted more than 20 years,” the source told the paper.

“The Duke has an unswerving loyalty to Ghislaine and she is also very loyal to him.

“Ghislaine will do anything to protect the Duke and the feeling is mutual. They both share the same view they have done nothing wrong.”

The pair are said to be nervously awaiting a Monday night TV special with Virginia Roberts Giuffre, who has said in court filings that she was forced to have sex with Andrew three times, including at Maxwell’s London home.

“Everyone is on tenterhooks especially after the backlash to the Duke’s ‘Newsnight’ interview – no one saw the fall-out from that coming, especially the Duke,” a source told The Sun.

“It’s fair to say everyone is nervously chewing their lips at Buckingham Palace to see what she will say.”

Buckingham Palace has repeatedly denied all the allegations against him. Andrew also denied them during his BBC interview, saying he does not even recall meeting Giuffre and suggesting the photo of them together could be fake.