Brazilian riot police prepare to invade the Puraquequara Prison facility at Bela Vista community, Puraquequara neighborhood at the city of Manaus, Amazonas state on May 27, 2019. - At least 40 inmates were killed in four jails in northern Brazil on Monday, authorities said, in the latest wave of violence to rock the country
Brazilian riot police prepare to invade the Puraquequara Prison facility at Bela Vista community, Puraquequara neighborhood at the city of Manaus, Amazonas state on May 27, 2019. - At least 40 inmates were killed in four jails in northern Brazil on Monday, authorities said, in the latest wave of violence to rock the country's severely overpopulated and dangerous prison system. (Photo by Sandro Pereira / AFP) (Photo credit should read SANDRO PEREIRA/AFP/Getty Images)
PHOTO: SANDRO PEREIRA/AFP/AFP/Getty Images
Now playing
01:00
Prison riot leaves 16 inmates decapitated and dozens more killed
Now playing
02:23
Tropical activity poses threat in Southern Hemisphere
PHOTO: Indonesia Search and Rescue Agency
Now playing
02:09
Woman who is trapped underneath earthquake's rubble captured on video
Barrie
Barrie's aunt speaks about how the police brought her the news about the death of her nephew Ibrahima.
PHOTO: VTM
Now playing
01:26
Aunt of Black man who died after arrest in Belgium: We want justice
screengrab US social media
screengrab US social media
PHOTO: Getty Images
Now playing
04:35
Tech companies ban Trump, but not other problematic leaders
Now playing
01:23
Rejected Tintin cover breaks world record for comic book art
WASHINGTON, DC - JANUARY 13:  Speaker of the House Nancy Pelosi (D-CA) presides over the vote to impeach U.S. President Donald Trump for the second time in little over a year in the House Chamber of the U.S. Capitol January 13, 2021 in Washington, DC. The House voted to impeach Trump on the charge of "incitement of insurrection," 232-197 after a mob of his supporters attacked the U.S. Capitol where Congress was working to certify the Electoral College victory of President-elect Joe Biden on January 6. 10 Republicans voted to impeach. (Photo by Chip Somodevilla/Getty Images)
WASHINGTON, DC - JANUARY 13: Speaker of the House Nancy Pelosi (D-CA) presides over the vote to impeach U.S. President Donald Trump for the second time in little over a year in the House Chamber of the U.S. Capitol January 13, 2021 in Washington, DC. The House voted to impeach Trump on the charge of "incitement of insurrection," 232-197 after a mob of his supporters attacked the U.S. Capitol where Congress was working to certify the Electoral College victory of President-elect Joe Biden on January 6. 10 Republicans voted to impeach. (Photo by Chip Somodevilla/Getty Images)
PHOTO: Chip Somodevilla/Getty Images
Now playing
02:35
How the world is reacting to Trump's second impeachment
Indonesia sriwijay air crash search for victims wang pkg intl hnk vpx_00000920.png
Indonesia sriwijay air crash search for victims wang pkg intl hnk vpx_00000920.png
Now playing
02:21
Family members wait in anguish as search for crash victims continues
africa china coronavirus vaccine diplomacy lu stout pkg vpx _00025522.png
africa china coronavirus vaccine diplomacy lu stout pkg vpx _00025522.png
PHOTO: CCTV
Now playing
03:09
How China is hoping to use its vaccine as a diplomatic tool
PHOTO: CIRO FUSCO/AFP/ANSA/AFP via Getty Images
Now playing
00:38
Huge sinkhole appears in Italian hospital parking lot
TOPSHOT - Rescue workers carry recovered debris at the port in Jakarta on January 10, 2021, during the search operation for Sriwijaya Air flight SJY182 which crashed after takeoff from Jakarta on January 9. (Photo by Dany Krisnadhi / AFP) (Photo by DANY KRISNADHI/AFP via Getty Images)
TOPSHOT - Rescue workers carry recovered debris at the port in Jakarta on January 10, 2021, during the search operation for Sriwijaya Air flight SJY182 which crashed after takeoff from Jakarta on January 9. (Photo by Dany Krisnadhi / AFP) (Photo by DANY KRISNADHI/AFP via Getty Images)
PHOTO: Dany Krisnadhi/AFP/Getty Images
Now playing
02:16
Indonesian jetliner crashes after taking off from Jakarta
 HONG KONG PRO DEMOCRACY ACTIVIST VENTUS LAU BEING ESCORTED BY POLICE.
HONG KONG PRO DEMOCRACY ACTIVIST VENTUS LAU BEING ESCORTED BY POLICE.
PHOTO: VENTUS LAU FACEBOOK PAGE/Reuters
Now playing
03:15
See Hong Kong police arrest former pro-democracy lawmakers
Tensions between the United States and Iran are likely to further escalate once again after Tehran seized a South Korean-flagged chemical tanker in the Persian Gulf, according to semi-official Iranian news agencies, and announced it had resumed enriching uranium to 20% purity, far beyond the limits laid out in the 2015 nuclear deal. President Donald Trump walked away from the agreement in 2018. CNN
Tensions between the United States and Iran are likely to further escalate once again after Tehran seized a South Korean-flagged chemical tanker in the Persian Gulf, according to semi-official Iranian news agencies, and announced it had resumed enriching uranium to 20% purity, far beyond the limits laid out in the 2015 nuclear deal. President Donald Trump walked away from the agreement in 2018. CNN's Paula Hancocks reports.
PHOTO: YJC
Now playing
02:37
Footage shows chemical tanker seized by Iranian forces
A European health worker prepares a shot of the coronavirus vaccine.
A European health worker prepares a shot of the coronavirus vaccine.
PHOTO: Reuters
Now playing
02:14
Frustration in Europe over pace of coronavirus vaccine rollout
Jack Ma, the co-chair of the UN High-Level Panel on Digital Cooperation, founder of Alibaba Group, attends the Bund Summit in Shanghai. He says that the essence of finance is credit management. We must change the pawnshop idea of Finance and rely on the credit system. Shanghai, China, 24 October 2020.

Jack Ma, the co-chair of the UN High-Level Panel on Digital Cooperation, founder of Alibaba Group, attended the Bund Summit in Shanghai. He says that the essence of finance is credit management. We must change the pawnshop idea of Finance and rely on the credit system.No Use China. No Use France.
Jack Ma, the co-chair of the UN High-Level Panel on Digital Cooperation, founder of Alibaba Group, attends the Bund Summit in Shanghai. He says that the essence of finance is credit management. We must change the pawnshop idea of Finance and rely on the credit system. Shanghai, China, 24 October 2020. Jack Ma, the co-chair of the UN High-Level Panel on Digital Cooperation, founder of Alibaba Group, attended the Bund Summit in Shanghai. He says that the essence of finance is credit management. We must change the pawnshop idea of Finance and rely on the credit system.No Use China. No Use France.
PHOTO: Zhao Yun/Oriental Image/Reuters
Now playing
03:05
Chinese tech tycoon has not been seen in months
(CNN) —  

At least 57 people were killed, including 16 who were decapitated, during a vicious gang battle that erupted in a prison in northern Brazil on Monday morning.

The unrest is reported to have begun when a local gang stormed a wing of the facility in Para state controlled by a rival group, state news reported. The majority of the victims are believed to have died from asphyxiation, after gang members set fire to part of the prison complex.

State media said the violence began around 7 a.m., local time in the Regional Recovery Center in the city of Altamira and lasted for several hours. Video of the scene showed prisoners sat on the roof of the building, brandishing knifes and with their heads covered, amid smoke rising from the interior.

Two correctional guards taken captive were released, state media reported.

Ten of the 16 prisoners who were blamed for instigating the violence will be transferred to federal penitentiaries, state media reported, citing local authorities. More than 46 other prisoners will be moved to other prisons in Para.

The incident is the latest outbreak of deadly violence in recent months to have taken place in Brazil’s often overcrowded and underfunded prison system.

In May, 55 inmates were killed in gang-related riots at four prisons in western Brazil.

The local prison authorities said at the time the deaths were a result of violent clashes among rival factions within the same drug gang, known as the Family of the North.

Benjamin Lessing, a professor at the University of Chicago who studies Brazil’s prison gangs, said that there were likely local factors at play in Monday’s violence, but the attacks were also part of an ongoing turf war between the country’s two main gangs and a “whole constellation of local gangs.”

“Most of the violence has been in this region, the north and the northeast region, and it’s a place where these gangs are actively fighting each other to achieve some kind of local hegemony or at least carve out space,” Lessing said.

“It doesn’t mean these gangs don’t exist in the rest of Brazil – they do, and there’s violence in other parts of Brazil too related to these gangs. But it seems like where the fighting is very intense right now is in this north-northeast region.”

The gangs used to only exist in Rio de Janeiro, but in recent decades have spread throughout the country, Lessing said.

In turn, the country’s prison population has ballooned to the world’s third-largest, trailing only the United States and China, according to the World Prison Brief.

Brazil’s penitentiary system has for years been plagued by violence due to what analysts have described as systemic failures. The country’s top prison official resigned in 2017 after a series of problems with drugs, corruption, escapes and riots.

Human rights groups have accused the government of doing too little to prevent the violence at prisons that have become recruitment centers for gangs – and even facilitating clashes by allowing the cells to become overcrowded.

“As you start to lock up more and more people, you’re really giving fuel to the fire. You’re putting more people in the hands of these prison gangs, giving them more power to recruit,” Lessing said.

Monday’s clashes pose a challenge to the country’s new far-right President Jair Bolsonaro, who has previously vowed to crack down on criminal gangs and prison violence.

CNN’s Flora Charner and Joshua Berlinger contributed to this report