Prince Andrew stayed friends with convicted billionaire pedophile Jeffrey Epstein because he was “too honorable” to end the relationship, The Duke of York told the BBC.

The royal — who was photographed at Epstein’s Manhattan mansion as recently as 2010 and is accused of having sex with one of his alleged underage victims — said he stayed at the pervert’s lair for the sake of “convenience.”

The photos of the prince peeking his head out from behind the front door of the Upper East Side townhouse were taken just months after Epstein’s Florida prison sentence on charges of soliciting an underage girl for prostitution.

“It was a convenient place to stay. I mean I’ve gone through this in my mind so many times,” he told the BBC’s Emily Maitlis in an interview set to air Saturday. “At the end of the day, with a benefit of all the hindsight that one can have, it was definitely the wrong thing to do.”

The prince blamed his admittedly faulty decision making on his strong sense of loyalty.

“At the time I felt it was the honorable and right thing to do, and I admit fully that my judgment was probably colored by my tendency to be too honorable, but that’s just the way it is,” he said.

The royal also denied claims he slept with alleged Epstein sex slave Virginia Roberts Guiffre.