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.
Jennifer Lawrence: 'It should be illegal to call somebody fat on TV'
Topless Snapchat photo of mother and 14-year-old daughter leads to charges