Mexican officials on Thursday said authorities have found migrants riding on about half of trains inspected in the country since June.

While the largest number of migrants were detained while walking — 41,649 between June and Dec. 22 — many migrants walk along tracks hoping to hop onto a passing train.

FILE: A Customs and Border Control agent patrols on the US side of a razor-wire-covered border wall along the Mexico east of Nogales, Ariz. 

FILE: A Customs and Border Control agent patrols on the US side of a razor-wire-covered border wall along the Mexico east of Nogales, Ariz.  (AP)

About 2,800 migrants were found hidden in trucks, and almost 3,500 were detained aboard buses.

The government presented figures on its crackdown on migrants, which started in May.

MEXICO'S AMBASSADOR TO ARGENTINA RESIGNS AFTER BEING CAUGHT SHOPLIFTING

So far in 2019, Mexico has detained 178,917 migrants, mainly Central Americans, and deported 84,327.

CLICK HERE TO GET THE FOX NEWS APP

In the first 11 months of 2019, Mexico has received nearly 67,000 asylum claims, more than double what it received in all of 2018.

The Associated Press contributed to this report.