President Xi Jinping's visit to South Korea for a summit simultaneously snubs nuclear-armed North Korea, bolsters an already booming trade relationship with Seoul and sends Washington and Tokyo a message of Beijing's growing influence south of the Korean Demilitarised Zone.
While there were smiles and pomp for Xi's arrival in the South on Thursday, North Korea welcomed the leader of its only major ally and crucial source of fuel and food with a flurry of recent rocket and missile tests, the latest on Wednesday.
The launches, as well as a vow on Thursday by the North's military to conduct more tests, are seen in part as Pyongyang demonstrating its anger at being jilted for its arch-rival.
Xi's choice to meet South Korean President Park Geun-hye over North Korean leader Kim Jong-un upends past practice - since Beijing and Seoul forged diplomatic ties in 1992 - to make Pyongyang first. It highlights Beijing's interest in nurturing booming economic ties with Seoul, while sending Pyongyang a message about its destabilising pursuit of nuclear weapons.
For Washington and the region, it also underlines China's growing influence in South Korea. Beijing, entangled in hostile territorial disputes across Asia, may see an opportunity to boost its influence with a neighbour that feels generally positive about China.
"In some ways, the budding closeness between Xi and Park echoes much older patterns in East Asia, when China exercised a relatively benign hegemony over many of its neighbours," said John Delury, a China and Korea specialist at Seoul's Yonsei University.
The two-day summit will be Park's fifth meeting with Xi since she took office early last year.
Chinese Foreign Ministry spokesman Qin Gang urged reporters not to "over-read" Xi's decision to visit South Korea before the North. But many in China see the visit as not only a remarkable departure from the past, but also a sign of a budding friendship between the leaders. Much has been made of Park's visit to Beijing last year and Xi's decision to send Park birthday wishes earlier this year.
Money has long been the focus of the relationship between China, the world's second-largest economy, and South Korea, the fourth-biggest economy in Asia.
They are in talks on a free-trade agreement. China is South Korea's largest trading partner, and Seoul says two-way trade topped US$220 billion last year. That is larger than the combined value of South Korea's trade with the United States and Japan.
"In economics, the relationship is as good as it gets," the Korea Times wrote in an editorial this week.
There's also a shared distaste for Japan's more assertive military ambitions, and for what Beijing and Seoul see as an attempt by Tokyo to obscure its brutal history in both countries in the last century.
Managing security matters, and more specifically North Korea's pursuit of nuclear bombs and the long-range missiles to carry them, has always been trickier.
China is seen as having unusual leverage with North Korea and is often pressed to do more to force change. They fought together in the 1950-53 Korean war, and more recently, North Korea has repeatedly looked to China for diplomatic cover when the United Nations has taken up North Korean nuclear and missile tests and its much-criticised human rights record.
Analysts don't think Xi will abandon North Korea entirely as long as Seoul remains loyal to an alliance with Washington that has shielded the South from North Korean aggression and allowed it to build its impressive economy.
China also worries that too much pressure on Pyongyang could cause a North Korean collapse that would push swarms of refugees over the countries' shared border.
Bitterness still lingers in Seoul over Chinese reticence to criticise what a Seoul-led international investigation said was a North Korean torpedo sneak attack on a South Korean warship that killed 46 in 2010.
Still, the accretion of worries about North Korea has helped draw Seoul and Beijing together.
Officials in Seoul now expect China to take strong action over future provocations, especially if Pyongyang conducts what would be its fourth nuclear test as it moves toward building an arsenal of nuclear-tipped missiles.
For its part, South Korea wants relief from the perpetual North Korean threat.
Scott Snyder, an Asia specialist at the Council on Foreign Relations, wrote this week that there was also a desire for "Beijing's acquiescence to Seoul's leading role in shaping the parameters for Korea's reunification".
China wants stability and a unified stance against Japan. It has also pushed for a resumption of the six-nation North Korean nuclear disarmament talks that it hosted until their last session in late 2008.
Long-estranged Japan and North Korea, meanwhile, opened the door to better relations just a crack this week, with officials discussing a possible easing of Japanese sanctions in exchange for a North Korean pledge to reinvestigate the fates of Japanese citizens kidnapped by North Korean agents in the 1970s and 1980s.
Xi's visit to Seoul would test close US ties with South Korea and Japan that Beijing believed had been used to check its rise, said Koh Yu-hwan, a professor of North Korean studies at Seoul's Dongguk University.
It also told Pyongyang that it could lose Chinese support if it stuck to its nuclear ambitions, he added.
"They will not feel good about this," Koh said of North Korea's reaction to Xi choosing Seoul over Pyongyang.