China, which is Tehran's biggest trade partner, spoke with the Iranians to get them on board, according to two officials who were not authorized to comment publicly and spoke on condition of anonymity.
Chinese officials were in touch with Iranian officials to encourage Tehran to find a path to a ceasefire deal as the negotiations were evolving, the officials said.
Beijing primarily had been working with intermediaries, including Pakistan, Turkey and Egypt, as it tried to use its influence, said one of the officials, who was not authorized to comment publicly on the diplomatic matter.
The Chinese foreign ministry did not immediately respond to a request for comment.
Earlier Tuesday, Mao Ning, a spokesperson for the Chinese foreign ministry, said, "All parties need to demonstrate sincerity and quickly end this war that should not have happened in the first place." She said China was "deeply concerned" about the impact the conflict has on the world economy and energy security.