Republican presidential nominee Donald Trump will travel to Mexico city on Wednesday and meet President Enrique Pena Nieto, just hours before his speech in Arizona to clarify views on immigration policy.
Pena Nieto last Friday invited both Trump and Democratic presidential nominee Hillary Clinton to visit Mexico, the Washington Post cited his office as saying on Tuesday.
Trump, sensing an opportunity, decided to push for a visit this week, said sources in the US and Mexico who are familiar with the discussions.
Trump and the Mexican president on Tuesday night confirmed on Twitter that they will meet on Wednesday.
"I have accepted the invitation of President Pena Nieto and look very much forward to meeting him tomorrow," Trump tweeted on Tuesday night.
The New York billionaire's tweet came shortly after, Pena Nieto's office wrote that "El Senor" Trump has accepted the invitation and will meet the president.
The visit comes after Trump has wavered for weeks on whether he will continue to hold his hard-line positions on the central and incendiary issue of his campaign, in particular his call to deport an estimated 11 million immigrants living in the US illegally.
According to the Washington Post, the people informed of Trump's plans spoke on the condition of anonymity because of the sensitivity surrounding the matter.
Talks between the Trump campaign and Mexican officials are ongoing, with security concerns still being sorted out, they said on Tuesday.
Trump will hold fundraisers on Wednesday morning in California and deliver his immigration speech in the evening at the Phoenix Convention Centre. His trip to Mexico would come between his events.