Mexican president, Carlos Salinas, took a historic decision. He decreed that his country’s future lay in setting aside its fear and resentment of its mighty neighbour to the north and embracing economic integration with the United States through the North American Free-Trade Agreement (NAFTA). The agreement underpinned the modernisation of part of Mexico’s economy. So the imminent arrival in the White House of Donald Trump, a critic of NAFTA who threatens to build a migrant-blocking wall between the two countries, looks like a disaster for Mexico.

It would be easy to say that Mr Salinas made the wrong bet, as his many critics charged at the time. He didn’t. For Mexico, geography is destiny. Anyway, with $1.4bn in goods crossing the border each day, the country’s economy is nowinextricably bound to that of the United States. So what is Mexico to do? Today’s president, Enrique Peña Nieto, who was excoriated when he invited Candidate Trump to visit, trusts that he can interest President Trump in a “modernisation” of NAFTA. He has some leverage: Mexican non-co-operation on trade, drugs and migrants could hurt the United States.

No democratic ally deserves the insults that Mr Trump directed at Mexico. But they have prompted introspection as well as anger. Mexico became “the easy piñata” of Mr Trump’s campaign because of its own failings, wrote Jesús Silva Herzog, a commentator, in Reforma, a newspaper. “The slamming of the door to the north leaves us, once again, face to face with ourselves.”

Mr Peña is right when he insists that not everything in