About 200 prisoners in Indonesia broke out of an overcrowded jail on Sumatra island, tearing down a gate near a mosque in the prison complex after being allowed out of their cells to pray.

Inmates had complained about their treatment in the jail in Pekanbaru, Riau province, and accused some guards of being violent.

Police said 77 inmates had been recaptured of the approximately 200 who had escaped.

The jail has a capacity of up to 700 inmates but was housing about 1,800 prisoners.