The ultra-orthodox man who stabbed six people at last year's LGBT Pride parade in Jerusalem was sentenced on Sunday.

Yishai Schlissel, an ultra-orthodox Jew, was given a life sentence plus 31 years and ordered to compensate the families of the victims, one of whom, 16-year-old Shira Banki, died from the wounds she received during the attack, Haaretz reported.

The Jerusalem District court ordered Schlissel to pay 264,000 shekels to the families.

The 40-year-old Schlissel lashed out during his indictment in August, saying that he was doing God's work.

“The pride parade must be stopped in order for the soul of Shira Banki to ascend to heaven,” he said.

“If you care for her well-being … you must stop cursing against God. The parade marchers are bringing great harm upon the nation of Israel.”

Schlissel had previously served a 10-year prison sentence for stabbing three people during the city's 2005 LGBT Pride parade. He was out of prison only three weeks when he killed Banki.