"The best wall is investment and creating opportunities in Mexico," Slim said during an strategy conference for the Spanish builder FCC, of which he is the main shareholder, in Madrid.

Slim also noted that the United States and Central American countries need to make deals on investment and not just for trade.

(Reporting by Isla Binnie; Writing by Paul Day)