Saudi Crown Prince Mohammed bin Salman and Iran's foreign minister Abbas Araqchi discussed developments in the region at a meeting in Riyadh on Wednesday, the Saudi state news agency (SPA) reported.
Top oil exporter Saudi Arabia has had a political rapprochement with Tehran in recent years, which has helped ease regional tensions, but relations remain difficult.
Speaking earlier, a senior Iranian official said Araqchi would discuss bilateral issues and efforts to secure a ceasefire in Lebanon and Gaza on his visit, adding that he will also visit Qatar later in the day.
The Middle East has been on edge awaiting Israel's response to an Iranian missile strike last week, which Tehran carried out in retaliation for Israel's escalation against Iran-backed Hezbollah in Lebanon, in a conflict running in parallel to the Gaza war.
Earlier this week, Tehran told Gulf Arab states it would be "unacceptable" if they allowed use of their airspace or military bases against Iran and warned that any such move would draw a response, a senior Iranian official said.

Man charged with 10 counts of attempted murder after knife attack on UK train
Tanzania's Hassan sworn into office after deadly election violence
Powerful 6.3 quake kills at least 20 in Afghanistan, hundreds injured
Turkey set to call for action on Gaza as soon as possible, source says
Hamas hands over three more hostage bodies
India federal agency freezes Anil Ambani Group's $351 million properties
Israeli strike kills one in Gaza as sides trade blame for truce violations
UK police say mass stabbing on train not terrorist incident, two arrested
