Jeffrey Epstein “collected” important people to impress elite society — and Prince Andrew was his ultimate “trophy,” according to a socialite who knew them both.

“Jeffrey collected people. He was almost addicted to collecting important people,” Lady Victoria Hervey said in a new documentary about the two men, “The Prince and The Paedophile,” according to the UK’s Metro.

“He liked to impress people. So, the British Royal Family, can you imagine? This was his biggest kind of trophy,” Hervey said on the documentary for Channel 4’s “Dispatches” set to air Monday night.

Hervey had dated Andrew briefly in 1999, the year the royal says he first met moneyman Epstein — with the socialite also meeting him through her then-friend, and Epstein’s accused madam, Ghislaine Maxwell.

She has previously claimed that she had dinner in London with Andrew and Epstein — along with Bill Clinton and Donald Trump.

An unnamed friend of Epstein said in the documentary that he warned the convicted pedophile against inviting Prince Andrew to visit him in 2010 — following Epstein’s stint in jail for sex with underage girls, according to the Daily Mail.

“‘They will attack Prince Andrew for being your friend, and each of you will lose. This is a lose-lose,'” the friend says he warned Epstein.

“And I remember him saying, ‘No one will know,'” the friend added.

Soon after, the pair were photographed together in Central Park and the prince was filmed at Epstein’s Upper East Side mansion.

Andrew, now 59, later told friends that the New York trip was to end his relationship with Epstein and has admitted that his visit was “a mistake and an error.”

The prince has denied the accusations made against him in the scandal and also insisted he had no clue there was a dark side to his friend, who hanged himself in a Manhattan lockup in August.

“At no stage during the limited time I spent with him did I see, witness or suspect any behavior of the sort that subsequently led to his arrest and conviction,” Andrew has said.