The Mexico government has released video of the moment Joaquín 'El Chapo' Guzmán's son was detained outside his home in Culiacán, placed on his knees and told to call his brother and stop a counterattack by armed cartel members on soldiers around the city.

Video of the failed arrest of drug lord Ovidio Guzmán López was revealed by Mexico's Defense Secretary Luis Cresencio Sandoval on Wednesday — an incident that has embarrassed the administration of President Andrés Manuel López Obrador.

In the footage, Guzmán is shown surrounded by soldiers with one telling him to call his brother, Iván Archivaldo Guzmán, the leader of 'Los Chapitos' wing of the Sinaloa Cartel, and tell him to stop the gun battle he launched in response to his brother's house being surrounded.

'Tell them to stop everything,' a soldier says as the sound of high-powered artillery rattles away in the background.

'Stop this, stop this. I already turned myself in,' Guzmán can be heard telling his brother on the phone.

The Mexican government released video footage of the failed arrest of drug lord Ovidio Guzmán López's October 17 (pictured)

The son of Joaquín 'El Chapo' Guzmán turns himself in during an operation earlier this month in Mexico

Archivaldo responded 'no' and shouted threats against the soldiers and their families. The attacks continued and eight minutes later the first wounded soldiers were reported.

According to President López Obrador, the commander of the military unit responsible of leading the raid was offered $3 million pesos, or $157,00, to let Guzmán López walk free.

But when he declined their proposition, the cartel threatened to kill him and his family.

Towards the end of the video, Guzmán López begs his brother: 'Please tell them to stop. Relax. Tell them to retreat. But just tell them. I don't want there to be any more chaos, please.'

Later that afternoon, police withdrew from the residence having released Guzmán in exchange for a ceasefire.

Thirteen people were killed in the bloodshed.

President Andrés Manuel López Obrador (left) defended the decision to release Guzmán (right), saying he was protecting civilian lives

Cartel leader Iván Archivaldo Guzmán ordered an all-out attack on the Mexican military after they surrounded his brother's house

A Mexican soldier records the moment Guzmán instructs his brother Archivaldo to stop attacking security forces

A cartel member carrying a grenade launcher to fight the army in Culiacán on October 17 after violence erupted over the attempted arrest of El Chapo's son

A body is seen laying on the street after the deadly gun battle. Culiacán exploded in violence with armed cartel members in trucks roaring through the city's streets shooting at soldiers with machine guns

Northwestern Mexico was turned into a war zone as a result of a gun battle between armed cartel members and Mexican law enforcement

The violence began when members of Guzmán’s entourage hiding in his house opened fire on a group of soldiers who were patrolling the area with the intention of carrying out the arrest.

The soldiers returned fire, stormed the house and took four people into custody - including Guzmán.

But as word spread that they had been detained, scores of cartel members descended on the house to save them from arrest.

They overpowered the 35 soldiers, who eventually retreated without the drug lord.

Mexico's Security Minister Alfonso Durazo (pictured above during an October 18 press conference) defended the decision to release El Chapo's son

Ovidio Guzmán López (left), along with his brothers, is believed to be a leader in the Sinola Cartel ran by his father, Joaquín 'El Chapo' Guzmán, (right), before he was jailed in theUS

A burnt vehicle sat across the street from a soccer stadium in Culiacán, Mexico, a day after armed gunmen waged an all-out assault against the Mexican military

Dozens of bullet casings litter the sidewalk in Mexico, a day after heavily armed gunmen attacked the military and forced the released of El Chapo's son

A video captures the moment cartel members took to the streets with machine guns and grenade launchers in an attempt to stop the arrest of El Chapo's son

Mexico's Public Safety Secretary Alfonso Durazo said on Wednesday that the aborted operation to arrest Guzmán was a 'hasty action' and a 'tactical stumble' that deserves criticism, but added the government's security strategy is sound.

'What could have become a scene of war and the shedding of innocent blood was resolved in favor of a return to peace and protecting the population,' Durazo said during a press briefing Wednesday.

Critics argued that the government should have anticipated the overwhelming response by the Sinaloa cartel and that by withdrawing they gave cartels a road map on how to avoid capture.

At the same briefing, Cresencio Sandoval said that there was an arrest order for Guzmán López based on a September 13 United States extradition request.

Mexico's Secretary of Defense Luis Sandoval (right) joins President Andrés Manuel López Obrador at Wednesday's morning press briefing to reveal the video of the moment Ovidio Guzmán López was told by the military to tell his brother to stop an assault

Joaquín 'El Chapo' Guzmán is the co-founder of the Sinaloa Cartel

During the attack, videos emerged on social media of cartel members in trucks with machine guns and grenade launchers. Children crouched next to cars and asked their parents why people were shooting.

During the battle at least 51 inmates escaped from Aguaruto Penitentiary in Culiacán. Two were captured.

After his father was jailed in the US, Guzmán, along with his brothers, reportedly become leading figures in the Sinaloa Cartel.

Yet Guzmán is not one of El Chapo's best-known sons.

Archivaldo and Jesús Alfredo Guzmán are known as 'Los Chapitos', or 'the little Chapos', and are believed to currently run their father's drugs empire, alongside Ismael 'El Mayo' Zambada, the organization's co-founder.