A prison riot in north-eastern Brazil left at least seven dead after a fight between two gangs escalated and led to about 70 people, many visiting family members, being held hostage for several hours.
It is not yet clear if all seven killed were inmates.
Prison officials in Bahia state, where the riot took place, said they negotiated an end to the standoff on Monday and all hostages have been released.
The riot began late on Sunday in the Feira de Santana regional prison, which is severely overcrowded – holding 1,467 prisoners in a space built for 644.
Several people were injured in the uprising but it is not yet known how many.
Prison riots are relatively frequent in Brazil and often involve multiple deaths.