Heavy fighting broke out in northern Mexico on Thursday after security forces detained a son of the jailed drug kingpin Joaquín "El Chapo" Guzmán.
Fighting raged for several hours after Ovidio Guzmán López was found during a routine patrol in the city of Culiacán.
Footage showed heavily-armed men firing on police, with cars, bodies and burning barricades strewn in the road.
Police withdrew without Mr Guzmán in their custody to avoid further violence, officials said.
Mexico's security minister, Alfonso Durazo, told Reuters news agency that a patrol of National Guard militarised police came under intense fire from outside the house where they had located Mr Guzmán, forcing them to retreat from the building for their own safety and "to recover calm in the city".
A lawyer for the Guzmán family told the Associated Press, "Ovidio is alive and free."
Mexico's President Andrés Manuel López Obrador said he would hold a meeting of his security cabinet to discuss the incident.
Mr López Obrador was elected on a platform of cracking down on Mexico's drug cartels, and has tasked a new security force, the National Guard, with fighting the dealers.
Under El Chapo's leadership, the Sinaloa cartel was the biggest supplier of drugs to the US, officials say. With the kingpin now behind bars, the cartel is said to be partially controlled by Ovidio Guzmán Lopez, who is accused of drug trafficking in the US and believed to be in his twenties. But he is not one of El Chapo's best-known sons.
What happened in Culiacán?
The state government said Mr Guzmán was found in a house by a police patrol on a routine search. It said cartel members subsequently launched the huge attack in an attempt to seize him back from the authorities. Fighters also attacked security forces in other parts of Culiacán.
Witnesses described scenes of panic in the city, a stronghold for the Sinaloa cartel, as families with small children fled from gunfire.
Footage on social media showed a pick-up truck with a machine gun mounted on the back, in scenes reminiscent of a war zone.
Other footage showed families scrambling to take cover under cars and in shops as gunfire roared. In one video, a girl asked her father: "Why are they shooting bullets?"
A purported mugshot taken of Mr Guzmán while he was detained by police was shared widely on social media.
What do you think?