AT LEAST 60 inmates died during a prison riot in the northern state of Amazonas in Brazil including several who were beheaded or dismembered.

State public security secretary Sergio Fontes said that in addition to the deaths, some inmates escaped, but he did not say how many. Several prison guards were held hostage.

“This is the biggest prison massacre in our state’s history,” Fontes said during a press conference. The riot began Sunday afternoon and lasted until this morning.

Two of the biggest crime gangs of Brazil began fighting last year over control of several prisons and authorities in Amazonas believe that’s the reason behind the first riot of 2017.

Fontes said the inmates made few demands to end the riot, which hints at a killing spree organised by members of a local gang against those of another that is based in Sao Paulo.

The secretary said officers found a hole in a prison wall through which authorities believe weapons entered the building.

Fontes confirmed that many of the dead had been beheaded and Judge Luis Carlos Valois, who negotiated the end of the riot with inmates, said he saw many bodies that were quartered. Valois wrote on Facebook:

I never saw anything like that in my life. All those bodies, the blood.

Valois said that during the negotiations, inmates only asked “that we did not transfer them, made sure they were not attacked and kept their visitation.”

The riot ended after the inmates freed the last of the 12 prison staffers they had held hostage, Valois said.

In another prison in Amazonas, 87 inmates escaped in the first hours of Monday, Fonte said.

One of the inmates posted a picture on Facebook as he left the prison.