OTTAWA - A Canadian former hostage who has been charged with sexual assault, misleading police and making death threats after returning home from years in captivity in Afghanistan has been granted bail.

Joshua Boyle, however, will be required to live with his parents in Smith Falls, near Ottawa, and under electronic monitoring. He was arrested on December 31 only two months after his return to Canada and faces 19 charges.

The court has banned the identification of Boyle’s alleged victims. According to court documents, the alleged crimes occurred between October 14 - the day Boyle and his family returned to Canada - and December 30, 2017.

In a previous statement, his American wife Caitlan Coleman blamed Boyle’s actions on his mental state - resulting from “the strain and trauma he was forced to endure for so many years.”

She said it was “with compassion and forgiveness that I... hope help and healing can be found for him.”

Boyle and Coleman, who married in 2011, were kidnapped by the Taliban during what they described as a backpacking trip through Afghanistan in 2012.

They were later transferred to the custody of the Haqqani faction of the Taliban.

The couple were freed last year, along with their three children aged between six months and five years - all of whom were born in captivity. A trial date has not been set.