Mexico will deport Central American migrants who attempted to storm the US border, its interior ministry said.
The group, part of the migrant caravan heading towards the US from Central America, was rounded up after trying to cross the border "violently" and "illegally" on Sunday.
US border officers used tear gas to repel them.
They have travelled in large groups, dubbed "caravans", for more than 4,000km (2,500 miles) from Central America and most want to reach the United States, where they say they plan to ask for asylum.