History shows that cooperation is the best choice for both China and the United States, Chinese President Xi Jinping told US President Donald Trump in a congratulatory message on Tuesday to mark 40 years since the establishment of diplomatic ties.

The two countries agreed last month to a 90-day temporary ceasefire in their bitter trade war to give them time to hold fresh talks to try and end a dispute that has seen them level increasingly severe tariffs on each others’ goods.

In his message to Trump, Xi said China-US relations have experienced ups and downs but have made historic progress over the past four decades, state news agency Xinhua said.

This has brought huge benefits to the two peoples and has contributed greatly to world peace, stability and prosperity, Xi added.

“History has proved that cooperation is the best choice for both sides,” Xi said.

Sino-US relations are in an important stage, he added.

“I attach great importance to the development of China-US relations and am willing to work with President Trump to summarise the experience of the development of China-US relations and implement the consensus we have reached in a joint effort to advance China-US relations featuring coordination, cooperation and stability so as to better benefit the two peoples as well as the people of the rest of the world,” he said.

Trump sent his own congratulatory message in return, saying it was his priority to promote cooperative and constructive US-China relations, Xinhua added.

Xi and Trump also spoke by telephone over the weekend. Trump said he had a “long and very good call” with Xi and that a possible trade deal between the United States and China was progressing well. China and the United States have made plans for face-to-face consultations over trade in January, China’s Commerce Ministry said last week.

Xinhua said it was only natural the two countries would have disagreements and encounter problems, considering their “different social systems, development paths and historical and cultural backgrounds”