A man accused of making death threats in connection with the Quebec City mosque shooting has pleaded guilty.

Mohamed-Amine Ben-Faras appeared in a Quebec City court Thursday and pleaded guilty to one count of making death threats against Alexandre Bissonnette.

The Crown withdrew the charge of making threats against Bissonnette's family.

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 claims to be a relative of shooting victim Azzedine Soufiane.

In court on Thursday, Ben-Faras said he made the threats out of anger, but never planned to act and suggested the situation has been blown out of proportion.

Throughout the hearing Ben-Faras was agitated, frequently interrupting the Crown and his own lawyer.

Ben-Faras's lawyer said his client lost his temper when he arrived at the mosque which was the scene of the deadly shooting, and said things he should not have said.

Ben-Faras will be sentenced Friday afternoon.

Bissonnette returns to court on May 29.