David Beckham was forced to perform a humiliating sex act while looking at a photo of soccer legend Clayton Blackmore during a bizarre homoerotic hazing ritual, the soccer star admits in a new documentary.

As a teenager, Beckham suffered through the creepy initiation ritual — while other players watched and cheered — before joining Manchester United’s youth team, he said.

“Everyone had an initiation that you had to go through on the youth team, that was one of the most uncomfortable ones,” Beckham said, according to UK’s Metro.

“The fact that I had to look at Clayton Blackmore’s calendar and do certain things, while looking at Clayton Blackmore — I mean it was embarrassing to talk about!” he said.

Beckham describes the ritual in “The Class of 92” documentary, which tells the story of six players on his team who sparked a generation of soccer stars. It will air on Sunday.

He talked vaguely about the sordid ceremony but wouldn’t go into specifics.

“I was embarrassed when I was saying it on camera let alone talking about it more. But it’s something we all had to go through,” said Beckham.

“It was definitely something I wouldn’t like to go through again.”

Beckam is now married to former Spice Girl singer Victoria Beckham.