Tianjin, China — A much-anticipated meeting of the leaders of the world’s two most populous nations took place Sunday with China’s Xi Jinping welcoming India’s Narendra Modi on the sidelines of regional summit in Tianjin – as the neighbors explore a rapprochement accelerated by their shared frictions with the United States.

Xi and Modi met at the Tianjin Guest House in what is the Indian leader’s first visit to China in seven years. The two shook hands and posed for cameras before their sitdown, which comes as both nations face stiff US tariffs as well as western scrutiny over their relationships with Russia as the war in Ukraine rages.

Modi thanked Xi for his invitation to China, saying an “agreement has been reached” between special representatives from both countries regarding “border management,” referring to tensions at their disputed border that escalated after a deadly 2020 skirmish and cratered relations at the time.

We are committed to taking our relations forward on the basis of mutual trust and respect,” Modi said.

Modi is in China for a meeting of the Shanghai Cooperation Organization, a Beijing-and Moscow-backed regional security grouping that has emerged as a cornerstone of Xi and Russian President Vladimir Putin’s drive to rebalance global power in their favor.

The Indian leader’s attendance and the sit-down with Xi marks a milestone in relations between Beijing and New Delhi, which have begun to ease their frictions – a shift that becomes more valuable to India in the wake of a surprise negative turn in US-India ties in recent weeks.