"The two leaders will review advances on different issues in the bilateral relationship," the Mexican foreign ministry said on Twitter.
The White House also confirmed the pair would meet on the sidelines of the summit, which will be held in Hamburg, Germany on July 7 and 8.
In January, Pena Nieto cancelled a trip to Washington in response to Trump's insistence that Mexico pay for his planned border wall, plunging the countries' relations into their biggest crisis in decades.
Together with Trump's attacks on Mexican immigrants as "criminals, drug dealers and rapists" and his insistence on holding tough new trade negotiations, the cancelled visit has come to represent Mexico's problematic new relationship with its northern neighbor.
That visit turned into a public relations nightmare for Pena Nieto, who was lambasted for welcoming the brash Republican billionaire despite his insults and threats on Mexico.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed.)