New York: US President Donald Trump has announced he will impose a 5 per cent tariff on Mexican imports in a bid to to get the country to crack down on the huge numbers of migrants attempting to cross the US-Mexico border.

On Thursday evening, US time, Trump tweeted that on June 10, the "United States will impose a 5% tariff on all goods coming into our country from Mexico, until such time as illegal migrants coming through Mexico, and into our country. STOP."

A child yawns after he is woken from his sleep by Mexican immigration authorities who arrived to push out camping migrant families from a park in Tapachula, Mexico, on Wednesday. Credit:AP

"The tariff will gradually increase until the illegal immigration problem is remedied ... at which time the tariffs will be removed. Details from the White House to follow."

He has threatened to raise the tariffs to 10 per cent on July 1 unless Mexico takes action to stop the crisis at the border.