For years, the UK’s relationship with China has been poor, dominated by rows about democracy in Hong Kong, human rights in Xinjiang and cyber threats against UK bodies.
Much of this has been fuelled by a cross-party alliance of MPs pushing hard for a more hawkish approach.
But Sir Keir Starmer is determined to improve relations - still challenging Beijing over disagreements but also looking for cooperation where possible.
So at the G20 summit in Brazil he became the first British prime minister to meet President Xi Jinping for more than six years. The last PM to do so was Theresa May in 2018.
Sir Keir told China’s leader a strong relationship was important for both countries - and for the international community.
"We want our relations to be consistent, durable, respectful as we have agreed,” he said. We need to “avoid surprises where possible and strengthen dialogue” and the UK would be more “predictable and consistent”.