Iranian Foreign Minister Mohammed Javad Zarif called on Sharif and also met army chief General Raheel Sharif and discussed the raging conflict in Yemen.
The visit is taking place as Pakistan's parliament is mulling a request by close ally Saudi Arabia to provide troops, fighter jets and warships to join its coalition fighting the Shia Houthi rebels in Yemen, allegedly backed by Iran.
Zarif shared proposals with Sharif to help implement a ceasefire in Yemen, Dawn reported.
The visiting Iranian foreign minister was also apprised of the premier's talks with Turkish leaders.
More From This Section
According to the army, the focus of the discussion with Gen Sharif remained on regional security, including the evolving situation in the Middle East, border management, defence and security cooperation.
Zarif, who arrived here yesterday on a two-day visit to discuss the Yemen crisis, has held detailed talks with the prime minister's adviser on foreign affairs Sartaj Aziz.
Zarif has said it was only the people of Yemen who have the final say in finding a solution to their problems. He said countries like Turkey and Oman support the idea of ceasefire.
He has not ruled out sitting with Saudi Arabia to find a solution to the crisis believed to be fuelled by the rivalry between Sunni Saudi Arabia and Shia Iran.
There is growing concern in Pakistan and across the Muslim world that the Yemen crisis may deepen the sectarian divide and may endanger peace and stability in countries with both Sunni and Shia populations.