The waves of Central Americans heading north were severely testing Mexico’s border patrol in the south of the country and led to a sharp increase in the number of people applying for asylum in Mexico, with applications more than doubling from 2015 to 2016.