Germany's Chancellor Angela Merkel speaks with children during an event as part of the Dual Year Germany-Mexico, at the Revolution Monument in Mexico City, Mexico June 10, 2017. REUTERS/Henry Romero

MEXICO CITY (Reuters) - German Chancellor Angela Merkel said on Saturday that putting up walls will not solve problems that countries are seeing due to immigration.

Speaking in Mexico City alongside Mexican President Enrique Pena Nieto, Merkel said the history showed only when empires have gotten on well with their neighbors have migration pressures been resolved in a way that ensured stability.