A Canadian man who with his wife was held hostage by the Taliban for five years has been accused of repeatedly assaulting her before, during and after their captivity, including tying her ankles and wrists with rope and forcing her to have sex.

Joshua Boyle, 35, is facing 19 charges, including sexual assault, after his estranged wife Caitlan Coleman, 33, alleged that she suffered at his hands. Court records show that one charge is related to another person, whose identity has not been divulged due to a court order.

FORMER TALIBAN HOSTAGE CAITLAN COLEMAN ACCUSES HUSBAND OF ABUSE DURING CAPTIVITY: REPORTS

Both Boyle and Coleman were captured by a Taliban-linked group in 2012 while on a backpacking trip in Afghanistan. During their five years in captivity, she gave birth to three children. The family was freed in 2017 by Pakistani forces.

ARCHIVO- En esta fotografía de archivo proporcionada por los medios del Talibán en diciembre de 2016, Caitlan Coleman habla en un video mientras su esposo canadiense Joshua Boyle sostiene a sus dos hijos. La pareja tuvo tres hijos durante los cinco años que fueron rehenes en Afganistán. La familia fue liberada el miércoles 12 de octubre de 2017. (Taliban Media vía AP)

Caitlan Coleman, seen with husband Joshua Boyle and their children, broke her silence after being rescued from captivity. (AP, File)

Coleman testified on Friday that during their captivity Boyle was controlling. His behavior “was just like my captors,” she told the court, according to the Guardian.

“I was never to disagree with him, even on small things,” she said. “In the past, he made it clear he didn’t feel any guilt hurting me.”

She described behavior by Boyle that she said led to a violent assault after they returned to Canada, in which he demanded sex, then hit her after she refused.

“Josh told me to get on the bed. He took ropes he kept in a bag … and he started to tie my hands and legs,” she said, adding that he sexually assaulted her and refused to release her. “He said he couldn’t trust me, so he wasn’t going to untie me.”

Boyle was arrested in December 2017 and pleaded not guilty to all charges. He was released from jail last June with strict bail conditions that include living with his parents in Smiths Falls, Ontario, and wearing a GPS ankle bracelet that tracks his movements.

FORMER TALIBAN HOSTAGE CAITLAN COLEMAN SPEAKS OUT FOLLOWING RESCUE

Coleman previously testified that she met Boyle when she was 16 and that he was her first kiss, but he soon became physically abusive and controlling.

She said that during their captivity, Boyle would spank, bite, and choke her as forms of punishment, and sometimes forced her to stay in a bathroom stall for hours because he couldn’t stand her, the newspaper reported.

Coleman said Boyle continued the abuse and controlling behavior after they returned to Canada.

She told the court earlier this week that Boyle forced her to take powerful sleeping medication. “He stood in the bathroom and watched me take them that time … I took them because I knew that if I didn’t he would hit me harder.”

CLICK HERE TO GET THE FOX NEWS APP

The trial is expected to last eight weeks.

The Associated Press contributed to this report.