SALTILLO, Mexico — Wendy no longer worries that when her sons leave the apartment in the morning, they may never make it to school. Memories of the gangs that haunted their lives in Honduras are slowly receding into the past.

The family fled its home last year after gang members tried to recruit the boys, threatening them with death if they did not join. They received asylum in Mexico, making them among the country’s newest residents.

“It’s not easy — as you can imagine — starting again,” Wendy said in an interview in this small city in northeastern Mexico, where the family decided to settle. “But we are better here because we are safer.”

The United States has long been the dream destination for many Latin American migrants, whether fleeing poverty, political unrest, natural disaster or violence. But now a growing number of migrants are putting down roots in Mexico, legally or illegally, instead of using it as a thruway to the United States.