But in remarks at the start of their meeting in Beijing’s Great Hall of the People, both men avoided difficult issues and heaped praise on each other’s countries.

After years of chilled relations under Conservative U.K. governments, Starmer said: “China is a vital player on the global stage and it is vital to build a more sophisticated relationship, where we can identify opportunities to collaborate, but also to allow meaningful dialogue on areas where we disagree.”

Communist leader Xi, speaking through an interpreter, singled out Britain’s Labour Party, saying it had in the past “made important contributions to the growth of China-U.K. relations.” He added that there had been “twists and turns that did not serve the interests of our countries” in recent years.

Chinese President Xi Jinping told Starmer that “as leaders we should not shy away from difficulties.” | Vincent Thian/AFP via Getty Images

Describing the state of the world as “turbulent and fluid,” Xi said more dialogue between the two nations was “imperative,” whether “for the sake of world peace and stability or for our two countries’ economies and peoples.”

He added the two men would “stand the test of history” if they could rise above their differences.

Acknowledging the furor over China in the U.K., Xi said: “Your visit this time has drawn a lot of attention. Sometimes good things take time.