A Quebec City court handed a life sentence on Friday to the gunman who fatally shot six members of a Quebec mosque in 2017.
Alexandre Bissonnette had already pleaded guilty to six counts of first-degree murder and another six accounts of attempted murder.
Judge Francois Huot rejected a request by the prosecution for Bissonette to be given a 150-year sentence, which would have the longest-ever in Canada.
However, he also noted the killer's "visceral hatred of Muslim immigrants" in his decision. Hout ruled on a life sentence with the eligibility of parole only after 40 years.
Bissonnette entered the mosque and opened fire on some 40 men and children who were chatting after the end of prayers. Those who were killed were all dual nationals who had emigrated to Canada in recent decades.
The killer's "highly premeditated" attack would be "written in blood" in Canadian history as one of the country's worst tragedies, Huot said in court.
While Huot said the attack was motivated by prejudice, he said it did not constitute a terror attack. The judge cited Bissonette's mental health issues, including an obsession with suicide.
Bissonnette, a university student at the time of the shooting, became enticed by nationalist and supremacist ideologies before committing the "unjustified and deadly" massacre.
rc/jm (AFP, Reuters, AP)