In a televised interview on May 15, Mr. Trump said: "I will not be patient anymore. They should reach an agreement.
The White House said that Mr. Trump and Mr. Xi Jinping agreed on the need to maintain the operation of the shipping line through the Strait of Hormuz. Iran previously almost blockaded this route in response to airstrikes by the US and Israel that began on February 28, seriously disrupting global energy supplies.
China is currently Iran's largest oil buyer and maintains close relations with Tehran.
The US has temporarily suspended attacks on Iran since last month but deployed blockades of its seaports. Negotiations to end the conflict fell into deadlock when Iran refused to end its nuclear program and did not agree to abandon its enriched uranium stockpile.
Mr. Trump believes that the US control of Iran's enriched uranium stockpile mainly has the meaning of "public relations".
In another development, an Indian cargo ship transporting livestock from Africa to the UAE sank off Oman. India condemned the incident and said all 14 crew members were rescued by the Oman Coast Guard.
Vanguard maritime security company believes the ship may have been hit by a missile or UAV, causing the explosion.
The UK Maritime Safety Authority UKMTO also said that "unlicensed people" boarded a ship anchored off the port of Fujairah in the UAE and steered the ship towards Iran. Vanguard quoted company security personnel as saying the ship "has been controlled by Iranian forces".
After the meeting in Beijing, the White House said that Mr. Xi Jinping opposed the militarization of the Strait of Hormuz and opposed tariffs on ships passing through this area. President Donald Trump also said that Chinese President Xi Jinping pledged not to provide military equipment to Iran.