Media playback is unsupported on your device
Media captionCelebrations and sickness – thousands of migrants make it to Mexico, but what happens next?President Donald Trump has said the US will “begin cutting off” foreign aid to Guatemala, Honduras and El Salvador over the unfolding migrant crisis.
Mr Trump criticised the countries on Monday for allowing people to leave the region and come “illegally” to the US.
The comments mark the latest attempt by Mr Trump to revive a national conversation about immigration before the US mid-term elections.
The caravan of thousands is now making its way through Mexico towards the US.
In 2017, Guatemala received over $248m (£191m) in US aid. The same year, Honduras received $175m and El Salvador $115m, according to the US Agency for International Development.
Pompeo: Migrant flow ‘a moment of crisis’
Trump threatens Honduras aid over migrants
Mr Trump accused the migrants of trying to illegally enter the US, but many of the families travelling towards the border are seeking asylum.
The migrants say they are fleeing persecution, poverty and violence in their home countries.
Without offering evidence, Mr Trump has also repeatedly suggested the caravan was politically motivated.
“The Caravans are a disgrace to the Democrat Party. Change the immigration laws NOW!'” he said in an earlier tweet.
A Honduran child staying in tents in the town of Tapachula as the migrants await processing by Mexican officials
Where are the migrants now?
On Sunday, the migrant caravan reached the town of Tapachula, approximately 37km (23 miles) from Mexico’s southern border with Guatemala.
The Mexican authorities had earlier tried to stop them at a border bridge, but some managed to cross into Mexico illegally by boat over the Suchiate river.
“We have sunburn. We have blisters. But we got here. Our strength is greater than Trump’s threats,” migrant Britany Hernández told AFP news agency.
It is expected to take weeks before the caravan reaches the US-Mexico border, according to US media.
One of the closest border crossings in Brownsville, Texas is still over 1,000 miles (1,600 km) away from Tapachula.
The last leg of their journey will also have to wait until Mexico processes the group, and asylum claims can take up to 45 days.
Why is President Trump reacting so strongly?
Curbing illegal immigration was one of the main campaign promises Mr Trump made when he ran for president.
His Republican Party is facing mid-term elections on 6 November and could be unseated by Democrats in the House of Representatives. Immigration is the most important issue facing the US, say 15% of all voters.
While Mr Trump would not be in favour of allowing thousands of Central American migrants to enter the US, the caravan is exactly the kind of issue that could energise his supporters.
Mr Trump on Monday also urged people to blame Democrats for the border crisis, saying: “Remember the mid-terms”.
Conservative media in the US have honed in on the president’s claims that the group is full of people – and criminals – seeking to illegally enter the US, as well as his remarks blaming Democrats for the crisis.
Who are the migrants?
A group of about 1,000 Hondurans set off on foot from a bus terminal in the crime-ridden city of San Pedro Sula on 13 October in an attempt to escape unemployment and the threat of violence.
Many of those in the caravan are women with children
Many of them had become aware of the caravan after a former lawmaker had published a poster announcing the caravan on Facebook. News of it quickly spread on social media.
They have since been joined by other Central American nationals as they crossed Guatemala towards the Mexican border.
The region has one of the highest murder rates in the world and many try to flee gang violence.
Read more about what drives migrants from Central America:
Why have they formed a caravan?
Migrant caravans of this scale are a recent phenomenon. While Central Americans have long fled their homelands for the US and have sometimes joined forces along the way, the organised nature of these caravans is relatively new.
There are many danger along the way and many migrants think travelling in a group will be safer
This is the second such caravan to leave Honduras this year. A similar convoy reached Tijuana on the southern border of the US in April after travelling 3,500km (2,175 miles).
Watch: Migrant caravan travels north
That march was organised by a rights group calling itself Pueblo Sin Fronteras (people without borders) which says it is trying to draw attention to the plight facing the migrants at home and the dangers they run during their attempts to reach safety in the US.
For the migrants, especially the most vulnerable ones such as the elderly and mothers with small children, the caravan offers more security than setting off on their own.
Migrants are often kidnapped by people traffickers and drugs gangs who force them to work for them. A large group is harder to target and therefore offers more protection.
How many migrants make up the caravan?
The exact number is hard to determine as the group has split up. Some are already in the Mexican city of Tapachula while others are still at the Guatemala-Mexico border.
The caravan has been growing in size with more people joining along the way
Some estimates put the number of migrants who left Ciudad Hidalgo for Tapachula on Sunday at 5,000 while a Mexican federal police commander gave a lower number of 3,000. Another 1,500 migrants are estimated to be waiting to cross at the Guatemalan side of the border.
A newly formed group of 1,000 mainly Honduran migrants has also set off for the US.
What have Central American nations and Mexico done?
Honduran President Juan Orlando Hernández urged citizens not to join the caravan. His country has also sent buses to the Mexico-Guatemala border to repatriate those who may have changed their minds about heading to the US or who are simply too exhausted to carry on.
According to official figures, 3,400 Hondurans who had formed part of the caravan have returned to their homeland.
Mexico said it would stop those who did not have passports or the correct visas at its southern border. But faced with thousands of migrants and after initial clashes, riot police got back on the buses that had brought them to the border bridge.
About 900 migrants crossed the river and made it into Mexico, without the police intervening.
In pictures: Migrants face border tear gas
On Monday, incoming Mexican Secretary of Foreign Affairs Marcelo Ebrard – who will take up the post on 1 December – told reporters that Mr Trump’s tweets were linked with domestic politics.
“The tweets we’ve been seeing lately do not surprise me, they do not surprise the government,” he said via an interpreter, according to Reuters news agency.
“It’s very close to the mid-term elections in the United States,” Mr Ebrard said after meeting with Canada’s foreign minister in Ottawa.
Mr Ebrard did not answer when asked directly about how Mexico will treat the caravan, but said that his country planned changes to its immigration policy.
“There are going to be many more work visas. We are going to invest in Honduras, Guatemala and El Salvador,” he said.
Mexican officials say they have been encouraging the migrants to apply for asylum and that more than 1,000 have started the process. Those whose claims are rejected by Mexican officials will be deported.
What the migrants say
Those who managed to cross into Mexico expressed their joy at having it made that far. Many shouted “Yes, we could!” and “we won’t stop”.
Media playback is unsupported on your device
Media captionMigrant caravan: ‘May God soften Trump’s heart'”We’re exhausted, it’s been a terribly difficult journey but we have hope: we’ve made it to Mexico, which means a lot to us,” a migrant called José Luis told BBC Mundo.
A woman called María, who is taking part in the caravan with her husband and her two small children, told BBC Mundo’s Ana Gabriela Rojas: “We are very happy to be here and we ask Mexican authorities and people to let us pass through. We are just looking for a job and better living conditions.”