Donald Trump will be traveling to Mexico Wednesday to meet with that country's president. The meeting will occur just hours before Trump plans to give a speech on immigration in Phoenix. The Republican presidential nominee confirmed the trip, first reported by the Washington Post, in a tweet Tuesday night.

The president of Mexico, Enrique Peña Nieto, also confirmed Trump's visit.

Here's more from the Post:

The people informed of Trump's plans spoke on the condition of anonymity because of the sensitivity surrounding the matter. They said earlier Tuesday that talks between the Trump campaign and Mexican officials were ongoing, with security concerns still being sorted out. Trump is scheduled to hold fundraisers Wednesday morning in California and deliver his immigration speech in the evening at the Phoenix Convention Center. His trip to Mexico would come between his events. The invitation is a stunning move by Peña Nieto, given the grief that Trump's campaign has caused the Mexican government over the past year. From calling Mexican illegal immigrants rapists and criminals, to vowing to build a wall along the southern border, to threatening to undo the North American Free Trade Agreement, Trump has caused growing alarm in Mexico. Peña Nieto himself likened Trump's rhetoric to that of Adolf Hitler and Benito Mussolini, in a March interview with a Mexican newspaper.

Peña Nieto has faced political trouble at home in recent days, with the Mexican president's law-school thesis revealed to have been plagiarized. Additionally, Peña Nieto this week fired the country's police chief after accusations came to light that anti-drug-cartel police officers had "summarily executed" at least 22 suspects.