Beijing A senior Chinese diplomat said Friday an attack on Iran would invite devastating retaliation that would envelop the region and destabilise the global economic recovery, and added that the international community had to restrain itself.

Israel and the US have threatened military action against Iran unless it abandons its nuclear programme.

China, which has close energy and trade ties with Iran, has urged a negotiated solution to the dispute.

The comments by Chen Xiaodong, head of the Foreign Ministry's West Asia and North African affairs division, was China's strongest warning yet not to use force to resolve the dispute.

"If force is used on Iran, it will certainly incur retaliation, cause an even greater military clash, worsen turmoil in the region, threaten the security of the Strait of Hormuz and other strategic passages, drive up global oil prices and strike a blow at the world economic recovery," he said.