The chaos calmed somewhat as migrants formed lines in a mass of humanity stretching across the bridge. Some returned to the Guatemalan side to buy water and food.
But others, tired of waiting, jumped off the bridge into the Suchiate River. Migrants organised a rope brigade to ford its muddy waters, and some floated across on rafts operated by local residents who usually charge a dollar or two to make the crossing.
Cristian, a 34-year-old cell phone repairman from San Pedro Sula, said he left Honduras because gang members had demanded protection payments of $83 a month, a fifth of his income. It was already hard enough to support his four daughters on the $450 he makes, so he closed his small business instead.
Cristian, who declined to give his last name because the gangsters had threatened him, estimated that about 30 per cent of the migrants want to apply for refugee status in Mexico, while the rest want to reach the United States.
"I want to get to the States to contribute to that country," Cristian said, "to do any kind of work, picking up garbage."
Police and immigration agents let small groups of 10, 20, 30 people through the gates if they wanted to apply for refugee status. Once they file a claim, they can go to a shelter to spend the night.
Eric Lagos Rodriguez from Tegucigalpa, the Honduran capital, and his family turned themselves over to authorities to apply.
"We couldn't go on like this," Lagos said, "we're traveling with six children."
As dusk neared, police were relieved by fresh officers and reformed ranks. Migrants continued to hang on the gates, yelling "there are children here" and "we are hungry." Back on the Guatemalan side, some people set up tarp shelters.
Earlier in the day, thousands of migrants, some waving Honduran flags and carrying umbrellas to protect against the sun, arrived at the Guatemalan side of the river, noisily demanding they be allowed to cross.
"One way or another, we will pass," they chanted, climbing atop US-donated military jeeps parked at the scene. Young men tugged on the fence, finally tearing it down, prompting the huge crowd of men, women and children to rush past and over the bridge.
Edwin Santos of San Pedro Sula was one of the first to race by, clutching the hands of his father and wife.
"We are going to the United States!" he shouted. "Nobody is going to stop us!"
Acner Adolfo Rodriguez, 30, one of the last through, said he hoped to find work and a better life far from the widespread poverty and gang violence in Honduras, one of the world's deadliest countries.
"May Trump's heart be touched so he lets us through," Rodriguez said.
The US president has made it clear to Mexico that he is monitoring its response. On Thursday he threatened to close the US border if Mexico didn't stop the caravan. Later that day he tweeted a video of Mexican federal police deploying at the Guatemalan border and wrote: "Thank you Mexico, we look forward to working with you!"
Mexican officials said those with passports and valid visas — only a tiny minority of those trying to cross — would be let in immediately.
Migrants who want to apply for refuge in Mexico were welcome to do so, they said, but any who decide to cross illegally and are caught will be detained and deported.
US Secretary of State Mike Pompeo met Friday with President Enrique Pena Nieto and Foreign Relations Secretary Luis Videgaray in Mexico City, with the caravan high on the agenda.
At a news conference with Videgaray, Pompeo called illegal migration a "crisis" and emphasized "the importance of stopping this flow before it reaches the US border," while also acknowledging Mexico's right to handle the crisis in a sovereign fashion.
"Mexico will make its decision," Pompeo said. "Its leaders and its people will decide the best way to achieve what I believe are our shared objectives."
At Mexico City's airport before leaving, Pompeo said four Mexican federal police officers had been injured in the border standoff and expressed his sympathy.
Migrants have banded together to travel en masse regularly in recent years, but this caravan was unusual for its huge size, said Victor Clark Alfaro, a Latin American studies professor at San Diego State University. By comparison, a caravan in April that also attracted Trump's ire numbered about 1000.
"It grabs one's attention that the number of people in these kinds of caravans is on the rise," Clark Alfaro said. "It is migration of a different dimension."
Elizabeth Oglesby, a professor at the University of Arizona's Center for Latin American Studies, said people join caravans like this because it's a way to make the journey in a relatively safe manner and avoid having to pay thousands of dollars to smugglers. She disputed Pompeo's assertion that that there is a "crisis" of migration.
"The border is not in crisis. This is not a migration crisis. ... Yes, we are seeing some spikes in Central Americans crossing the border, but overall migration is at a 40-year low," Oglesby said.
Speaking on the Televisa network, Videgaray did not seem concerned about Trump's threat to close the US-Mexico border, saying it had to be viewed in light of the hotly contested US midterm elections, in which Trump has made border security a major campaign issue.
US Border Patrol agents in Arizona released footage today of a large group of Central American migrants breaching the US border.
The agency said camera operators monitoring movement Thursday afternoon along the US-Mexico border in the Yuma area captured images of a large number of people being dropped over the border wall east of the San Luis Port of Entry.
It said the smugglers never crossed the border while they helped migrants over the wall in four places. The group was comprised of 100 Guatemalans and eight Hondurans. They included 52 children, nine of them 5 years and younger.
Arizona Border Patrol agents for weeks have been overwhelmed by the arrival of large numbers of Central American migrants travelling in families.
US Immigration and Customs Enforcement in Arizona earlier this month began releasing hundreds of people to await court dates, saying it didn't have the capacity to hold an "incredibly high volume" of migrant families showing up at the border.
"Coordinated smuggling of large numbers of Central Americans is taking place daily here," Yuma Sector Chief Patrol Agent Anthony Porvaznik said in a written statement.
Before the arrival of the latest group, authorities said that collectively more than 1400 migrants had been left by smugglers in the broiling desert — or in one case in a drenching thunderstorm — in remote areas by Arizona's border with Mexico since August 20. One group was as large as 275 people.
Unlike Texas, where people turn themselves in on the banks of the Rio Grande, the smugglers near Arizona have been dumping groups of migrant families near Yuma, or farther to the east on a remote dirt road running along the southern limit of the Organ Pipe Cactus National Monument near the Lukeville Port of Entry.
- AP