Ismael Habib has been denied bail on charges of criminal harassment, uttering threats, and forging documents in Gatineau, Que., a judge ruled Friday.

In the coming days, the 28-year-old Quebec man is set to appear at another bail hearing in Montreal on an unrelated charge of attempting to leave Canada to participate in the activities of a terrorist group. The terrorism-related charge was laid last week.

Had he been granted bail in Gatineau, Habib would have remained in custody pending the result of the upcoming bail hearing on his terrorism-related charge.

The first set of charges were laid by Gatineau police in the first week of March.

Habib's lawyer, Jacques Belley, said his client has waived his right to a preliminary inquiry for the charges laid in Gatineau, and that a date for trial should be determined in the coming days.

Justice Gaston Paul Langevin said Friday he's worried by Habib's religious fanaticism, and that he believes the testimony Habib gave during the bail hearing wasn't credible. Langevin also said Habib's stepfather seems vulnerable to manipulation.

Habib's legal address is in the Montreal neighbourhood of Anjou, but the RCMP said he lives Gatineau.

With files from Geneviève Garon