This business retreat took balls — literally.

A New Jersey man claims his boss drunkenly grabbed his crotch so hard that doctors had to remove a testicle.

Michael Peacock, 45, endured three surgeries, including the removal of one of his private parts, after he was manhandled during a two-day “team-building” seminar in upstate New York, a lawsuit says.

On July 18, 2012, the workers for the data-security company Iron Mountain Management went barhopping in Kingston and took a cruise on the Hudson to foster camaraderie.

But as the booze flowed, boss Richard Langtry became “increasingly loud and aggressive,” Peacock claims in New Jersey Superior Court papers.

Langtry “drank heavily throughout the day and into the evening,” and then, as the men passed each other outside a restroom, “grabbed [Peacock’s] left testicle, squeezed it hard and pulled it down as if to rip it from his groin,” court papers claim.

The “emasculating” attack, which left the 6-foot-8 Peacock not only unable to strut but doubled over in pain, “was a perverse and misguided attempt by Langtry to bond with Peacock while simultaneously demonstrating his authority and dominance,” court papers say.

Peacock, a father of two from Somerset County, now has permanent, chronic pain and trouble in the bedroom, he says in the legal filing against Langtry, Iron Mountain and the three venues that served his supervisor ­alcohol.

Langtry was fired but, adding insult to injury, Peacock was seen as the villain by some co-workers. They made fun of his disability, calling him a “drag queen” and urging him to “chop the other one off,” according to court papers.

“It’s akin to hazing,” said Peacock’s lawyer, Christopher Kelly.

Peacock, who is seeking unspecified damages, says he was forced out of the company after it switched his job position and cut his pay.

A lawyer for Langtry did not comment.