Donald Trump has said that he would meet with the president of Mexico.

During a town hall tonight with Fox News' Sean Hannity, the Republican nominee was asked about Mexican President Enrique Pena Nieto's recently saying he would meet with the next U.S. president, regardless of who it is.

"I'd meet with him," Trump said. "Absolutely, I'd meet with him."

Over the course of his campaign for the White House, Trump has time and time again vowed to build a wall separating Mexico from the U.S., adding that Mexico would pay for the wall.

Last week, Pena Nieto said he would meet with Trump, according to a report by Reuters, despite previously comparing him to Adolf Hitler and Benito Mussolini.

"I have never met him," Pena Nieto said. "I can't agree with some of the things he has said, but I will be absolutely respectful and will seek to work with whoever becomes the next president of the United States."

Pena Nieto said in March that he would not pay for a border wall under any circumstances.

"We send them practically nothing, and Mexico is the new China. I hate to say it. The Mexican leaders are so much smarter than our leaders," Trump said during a rally in January in New Hampshire.