The exterior of the Calgary Courts Centre was photographed on Tuesday January 16, 2018. Gavin Young/Postmedia

The rape of a city teen at the hands of three men ended when she threatened to bite off the penis of one of her assailants, court heard Wednesday.

In a videotaped interview played at the trial of two of her alleged attackers, the then-14-year-old told a child abuse detective the trio took turns sexually assaulting her in the bathroom of a city home.

But after all three had forced themselves on her one tried to make her perform oral sex, she told Det. Mike Ruark in the Aug. 21, 2014 interview.

“After the third guy was done, he didn’t leave the bathroom,” the teen said in the recording, which the now-18-year-old watched from a remote witness room.

“All three of them came in the bathroom while I was still laying down on the floor.

“I don’t know what guy it was, but one of them was trying to get me to have oral sex with him, and I said no,” she explained to Ruark.

“I said, ‘I will literally bite your d— off if you come near me again.’ And then they all stopped and they walked out of the bathroom.”

She had earlier told Ruark she agreed over social media to hang out with one of the trio before a group of four men picked her up outside her southeast Calgary home.

In the May 2014 incident one of the four refused to participate in the actions of the others, she said.

After being picked up, she was driven to a residence where they drank rum and smoked some pot.

At one point, one of the men asked her to sit on his lap. After she declined a few times, he persisted.

He then took her upstairs and into the bathroom before forcing himself on her.

The girl told Ruark she was foolish for not being more suspicious of the men.

“I trusted all of them and then they ended up doing what they did,” she said.

On trial on charges of sexual assault and sexual contact with a minor are Abas Ibrahim and Omar Kromah.

A third suspect, Zakariya Abdow, was fatally stabbed on the Calgary Stampede grounds in July 2015.

The man originally charged in Abdow’s death, Rinato Toy, was slain in a hail of gunfire June 3, 2017, while he was on a basketball court with a group of other people.