China welcomed on Monday an agreement announced by the United States and Iran to end the Middle East war, commending Pakistan for its mediation efforts. "China welcomes the agreement reached between the United States and Iran... and expresses appreciation for the mediation efforts made by Pakistan," foreign ministry spokesperson Lin Jian told a news briefing, adding that Beijing hopes the deal would be signed as scheduled. US and Iranian officials said they had reached an agreement to end their war and reopen the Strait of Hormuz, a preliminary pact that sent oil prices falling but leaves the fate of Tehran's nuclear program to further negotiations. While still a framework, the deal marked the biggest breakthrough towards resolving the conflict that has killed thousands and upended energy markets since it began with joint US-Israeli strikes on Iran in February. Pakistani Prime Minister Shehbaz Sharif, whose country has served as a mediator, announced a deal had been struck early on Monday local time. The memorandum of understanding is scheduled to be officially signed on Friday in Switzerland. The precise terms were not immediately known. Sharif said in a post on X that the pact called for "the immediate and permanent termination of military operations on all fronts, including in Lebanon." Lebanon has been a sticking point in negotiations, with Israel and Hezbollah ignoring calls from Trump and others to stop their attacks on each other in recent weeks. Israel’s defense minister said Monday that Israel won’t withdraw from land occupied in Lebanon as the interim deal between Iran and the United States is pending. Katz said Israel plans to stay “indefinitely” in lands it holds in Lebanon, as well as Syria and the Gaza Strip.