A man convicted of uttering death threats will be expelled from Canada.

Mohamed-Amine Ben-Faras pleaded guilty Thursday to threatening to kill Alexandre Bissonnette, the man accused of committing mass murder at a Quebec City mosque.

On Friday Ben-Faras was given an 11-day suspended sentence and placed on three years' probation, along with being ordered to leave Canada immediately.

The defence and Crown made a joint recommendation on the sentence.

"Within that probation he was prohibited to have any contact with Alexandre Bissonnette and his family, he is forbidden to acquire any firearms or explosives, and he is banned for three years from Canada, except within the presence of a peace officer or an agent from the Canadian Border Services Agency,' said Crown prosecutor Sabin Ouellet.

Ben-Faras was initially also charged with threatening Bissonnette's family, but the Crown withdrew that charge.

Bissonnette is the 27-year-old man charged with committing mass murder at a Quebec City mosque in January. He is in custody awaiting trial on six counts of first-degree murder and five counts of attempted murder.

Ben-Faras, a native of Morocco who was living in Europe, claims to be a relative of shooting victim Azzedine Soufiane.

In court on Thursday, he said he made the threats out of anger upon arriving in Quebec City and entering the mosque, but never planned to act.