Ahmadinejad spoke by telephone with Ismail Haniyeh, the Hamas leader who was dismissed as Palestinian prime minister in 2007 by President Mahmoud Abbas, the government broadcaster Press TV reported.
"Zionists have reached the end of the road and have no choice but to recognize and yield to the absolute right of the Palestinian nation," Ahmadinejad told Haniyeh.
Iran is one of Hamas' major international sponsors.
Dennis Rodman pledges to end trips to North Korea
Jessica Simpson shares three-way kiss with friends in photo