The accused sex cult leader of Nxivm taught his disciples that women enjoyed being raped and child abuse wasn’t a crime, a witness testified Friday.

Keith Raniere’s disturbing lessons were part of a higher-level course within the purported self-help group called the “Human Experiment.”

“As you move up [in Nxivm course work], the rhetoric in the curriculum appears to be more misogynistic and there’s a great deal of sexual overtone,” FBI special agent Michael Weniger told jurors in Brooklyn federal court.

Subcourse “Sex, Rape and Orgasm” taught Nxivm students that women achieve ultimate pleasure from being raped.

“There is tension ultimately of being overcome,” one of the tenets read — which was flashed on the screen in the courtroom.

Another claimed, “Often women who have that report an unexpected experience of freedom which occurs during rape.”

Raniere, who faces up to life in prison on sex-trafficking and other charges, also allegedly wrote in an email, “There is a certain percentage of women that when they get raped they have orgasms.”

“There are a few that I’ve spoken to and counseled that say they never had an orgasm in their life until they were raped,” Raniere wrote.

Another subcourse that was taught was “Abuse, Rights and Injury,” which denied sexual abuse of a child was a crime.

Those credos included “Where is the injury if an adult parent has sex with a child and the child enjoys it?” and “An adult and child are having sex, what’s the difference between the child being tickled and the child being stimulated?”

Meanwhile, earlier in the day, prosecutors alleged Nxivm collateral showing alleged sex slave Sarah Edmondson being branded was somehow leaked to Mexican media.

“Since the start of this trial, I viewed a video that was on Mexican television that was of the branding ceremony of Sarah,” testified Weniger, who has been investigating Nxivm since October 2017.

An objection to the line of questioning was called by the defense, prompting Judge Nicholas Garaufis to hold a sidebar conversation.

Weniger was not questioned further about the video.