Prince Andrew might want to think more about where he stays on vacation.

The prince was not only buddies with Jeffrey Epstein — both a convicted pedophile and an accused sex trafficker — but now he’s linked with billionaire fashion executive Peter Nygard, who is accused of rape and sodomy in a scathing federal class-action lawsuit.

Nygard lured “a slew of young disadvantaged teens to his Bahamian mansion under the promise of fame and fortune,” then raped, sodomized and coerced them to engage in depraved fetishes, alleges the lawsuit, which was filed Thursday in Manhattan federal court.

And now it has come to light that in 2000, Andrew and ex-wife Sarah Ferguson stayed at Nygard Cay, near Nassau, Bahamas, with their daughters, Beatrice and Eugenie.

Pictures of the visit, obtained by the Daily Mail, show the prince and Nygard strolling together at the luxury estate.

There is no evidence that the Duke of York knew anything about Nygard’s alleged activities.

Andrew has also faced scrutiny over his friendship with Epstein, whose body was found last summer in his Manhattan jail cell. Late last year, the Duke — who also stayed with the convicted child sex offender — told the Guardian newspaper that he regretted the visits but thought he was doing the “honorable” thing at the time.

The lawsuit also alleges Nygard used yachts to transport drugs and liquor for the parties and kept a database with the names of 7,500 “potential victims” for decades.

Andrew and Sarah stayed with Nygard in the Bahamas during the time that the lawsuit makes the accusations against Nygard.