Mahmoud Ahmadinejad has become the first Iranian president to visit Egypt since the Islamic revolution in 1979.
Mr Ahmadinejad is in Cairo for a summit of the Organisation of Islamic Co-operation, which begins on Wednesday.
After arriving on Tuesday, he discussed with Egyptian President Mohammed Morsi ways to end the bloodshed in Syria and strengthen relations, officials said.
Mr Ahmadinejad was later warned by Egypt’s top Sunni Muslim cleric not to meddle in the affairs of Gulf states.