Azil’s Riot Police have released 18 hostages held by armed inmates at a Rio de Janeiro jail.
The unrest in the overcrowded prison in Japeri, which is effectively run by a criminal gang, began on Sunday.
Three inmates who took part in the mutiny were shot, but are not thought to have life-threatening injuries.
Police seized three guns and a grenade.
The unrest comes just days after the Army took control of security in the state of Rio de Janeiro.
Officials at the Milton Dias Moreira Prison said the riot could have been in response to the new security measures, which are aimed at tackling worsening gang violence.
They said that eight prison wardens and 10 inmates, had been taken hostage by rebelling prisoners.
The rebels gave themselves up after several hours of negotiations.
Rio residents have expressed fears of a surge in violence in the next few months.
LATEST ON
Tweets by @i955fmTWITTER
LATEST ON
FACEBOOK
This message is only visible to admins.
Problem displaying Facebook posts.
Click to show error