Xi Jinping strode into the Great Hall of the People in Beijing and settled into his chair, flanked by his top advisers at a large mahogany table decorated with purple orchids.
Stately in a navy suit, China’s leader delivered brief opening remarks – just under a minute – to welcome Pedro Sánchez, the Spanish prime minister, sitting opposite.
“The world today is in turmoil and disorder. How a country approaches international law and the international order reflects its worldview, values and its approach to order and responsibility,” said Mr Xi, assuming the role of a respected world leader.
“China and Spain are both principled countries that value justice, and are willing to stand on the right side of history,” he continued, in a thinly veiled jab at Donald Trump’s assault on Iran, which has engulfed the Middle East in war for the past 50 days.
“We must oppose a return of the world to the ‘law of the jungle’, jointly safeguard genuine multilateralism and uphold global peace and development.”
Official readouts also noted how Mr Xi “emphasised that today’s turbulent world faces the struggle between right and might”.
It may sound hypocritical for a leader engaged in expanding China’s armed forces at breakneck speed to talk in such pious terms.
But Mr Xi’s first public remarks about the US-Israel war against Iran provided insight into how China is seeking to turn this conflict to its advantage. Mr Xi is perhaps guided by the Chinese idiom “yin huo de fu”, which translates to a blessing in disguise – a chance to profit from a disaster.
In brief, China will cast itself, however incongruously, as benign and responsible while portraying America as ruthless and erratic. Chinese military chiefs will study America’s conduct of this war, striving to learn everything they can about the tactics and weaponry of their superpower adversary.
And Mr Xi will gain from the obstruction of global oil supplies as China is the world leader in renewable energy, with a supply chain almost entirely dependent upon Chinese resources, manufacturing and technology.
China’s biggest victory from the Iran war is another opportunity to frame America as a destabilising actor in an effort to show a US-centric world order based on its exceptionalism does not benefit the world, experts say.
In doing so, Mr Xi can “promote China as an alternative, responsible stakeholder in the international system”, says Meia Nouwens, a senior fellow and China defence expert at the International Institute for Strategic Studies. “It’s an information narrative battle that they’re well-attuned to.”
Donald Trump’s war on Iran will be studied carefully by Chinese military chiefs – Graeme Sloan/Sipa/Bloomberg
Mr Trump’s war has given Mr Xi the opportunity to adopt exactly the same messages – condemning “might makes right” and the “law of the jungle” – that America once used against China.
The US president has been accused of barrelling into an illegal war without a mitigation strategy for the fallout that has ensued.
He had not planned for Iran shutting the Strait of Hormuz, a move that threatened the global economy, although on Friday, Iran and the US said the Strait was open again.
Exactly a decade ago, Barack Obama, then US president, rebuked China for “resorting to the old style of ‘might makes right’ as opposed to working through international law and international norms to establish claims and to resolve disputes”.
With those words, Mr Obama changed America’s language from general philosophical warnings about a changing global order to a direct accusation against China.
Fast forward to today and Beijing has expertly – and hypocritically – turned the tables on American rhetoric, showing just how much of a diplomatic win China stands to gain from Mr Trump’s war.
Mr Xi’s message appears to be sinking in: China beat the US in global approval ratings by the widest margin in nearly 20 years in a recent Gallup poll, thanks to a decline in US ratings alongside an increase for China.
“China’s global image is improving…as a result of what the Americans are doing wrong,” says Andrea Ghiselli, a China-Middle East specialist and lecturer at the University of Exeter. “This is a story about America’s loss.”
It does not help that the US ostensibly used negotiations with Iran to buy time before launching military action.
In recent months, a procession of Western leaders has shown up at Mr Xi’s doorstep and turned away from Mr Trump, with Mr Sánchez being the most recent example.
They are considering how best to reposition their countries relative to China at a time when their traditional alliance with America is under unprecedented strain.
Mr Trump has criticised Nato for refusing to take part in his war; he has previously threatened to pull out of the alliance and impose tariffs on European nations until the US is allowed to buy Greenland.
Xi Jinping, seen meeting military personnel in north-west China, is seeking to turn the Iran war to his advantage – Xinhua/Shutterstock
China is even managing to cast itself as an effective mediator between America and Iran in peace talks in Pakistan – despite, in reality, doing very little.
For years, China has thrown Iran a lifeline against sanctions, but beyond their mutual interest in undermining America and their shared authoritarian systems, the two countries have little in common, not least because the Chinese Communist Party is officially atheist while the Islamic Republic is a theocracy.
“It just doesn’t seem likely that the Chinese have all that much influence in Tehran to change matters or to push forward negotiations,” says Charles Parton, a senior fellow at the Royal United Services Institute, and a former British diplomat who specialises in China.
But China can score propaganda success by appearing to be an effective intermediary without having to shoulder actual responsibility in the Middle East, something for which it has no appetite.
Wang Yi, the Chinese foreign minister, has spent far more time speaking with other countries than in direct consultations with Abbas Araghchi, his Iranian counterpart.
That is why China’s approach could backfire in the long term because its actions often fail to match its diplomatic pretensions.
This year, Beijing has done little to help two strategic partners under siege from the US – Venezuela and Iran. China has offered little beyond rhetorical support and no military might.
“It naturally raises the question: why didn’t China help its ‘friend’? That might cast doubt over the role of China and to what extent other countries engage with China,” said Zongyuan Zoe Liu, senior fellow and an East Asia-Middle East expert at the Council on Foreign Relations.
“It’s certainly natural for countries – especially one under Western sanctions with a long, good economic and strategic relationship with China – to expect China’s continued support.”
China is expanding its armed forces at breakneck speed at the same time Mr Xi claims to oppose a ‘return to the law of the jungle’ – VCG via Getty
But this goes to the very foundation of how China operates. Mr Xi does not believe in traditional alliances, such as the “special relationship” between the US and Britain, which he believes will lead to the downfall of the West by promoting acrimony between the supposed friends.
The sight of Mr Trump denouncing Sir Keir Starmer for failing to back America during this war will, in Mr Xi’s eyes, help to prove that theory.
And China does not have formal treaty allies – except, embarrassingly, North Korea – nor does it provide any other country with Nato-style security guarantees. It follows that Iran’s regime would never have expected Chinese military support against America.
“The expectation that China should support its friends militarily is ungrounded,” says Ms Liu.
“But that does increase the credibility gap. It’s more of an expectation mismatch of what China wants and can deliver, and what other countries expect.”
A desire to stay out of everybody’s crosshairs at this moment is linked to China’s plans for improving defence capabilities and military readiness. That is easier said than done after a string of high-level purges amongst its most decorated officers in recent months.
Though Mr Xi commands the world’s largest armed forces with two million active-duty personnel, this generation of Chinese soldiers has never been tested in battle.
Hence, China is obsessed with seizing every opportunity to observe how America fights and learn lessons from every contemporary conflict, including the battlefield in Ukraine, the US operation in Venezuela and now the Iran war.
The PLA will be evaluating its strengths and weaknesses by comparison with America in terms of combat operations, planning capabilities, operating capacity and military hardware.
All this could inform how Mr Xi might one day choose to approach Taiwan, a democratic island nation that Beijing claims as its territory.
China is noting the importance of asymmetric warfare in Iran, which is fighting the world’s most advanced military, and somehow managing to survive and even retaliate with significant effect against the Gulf states. (On the other hand, Taiwan will also be learning from this David vs Goliath scenario.)
Iran has been using relatively cheap drones to fire at positions held by the US and its Gulf allies, forcing the US to intercept them using expensive air defence systems.
US bases have been hit, military aircraft downed and American soldiers killed. Plus, US taxpayers are picking up the bill – Harvard University professors estimate the war costs $2bn (£1.5bn) a day, and will hit $1tn (£770bn) overall.
Beijing, too, has seen that decapitation strikes do not lead to decisive victory, but instead risk a protracted conflict – underscoring the necessity to stockpile weapons sufficiently.
“China will be watching how, despite the US eliminating Iran’s leadership at the start of the war, the Iranian regime has not yet collapsed,” says Ms Nouwens.
“Beijing could be thinking about what the takeaways might be in a kinetic Taiwan scenario in which we assume decapitation strikes will play a role.”
China has even had an opportunity to test the US response, sending a sanctioned tanker through the Strait of Hormuz on the second day of Mr Trump’s blockade of Iranian ports.
Initially, the Rich Starry seemed like it might be allowed to pass, but the ship later made a U-turn and complied with the US embargo.
Such incidents are a cautionary tale for China, which frequently resorts to coercion to push others to defer to its interests.
But they also “genuinely demonstrate to China that applying excessive pressure on a major power risks losing control of the escalation”, said Lukas Filler, a former US navy commander and senior research fellow with the University of Virginia’s National Security Data and Policy Institute.
This is an important lesson for Mr Xi: as he alone has concentrated power in his hands, that means he alone may be to blame if a prolonged war against any Chinese adversary were to escalate out of control.
China has also been able to use the Russian invasion of Ukraine – and now the war in Iran – to judge the performance of its drones. But just how much Chinese-supplied weaponry Iran might be using today is unclear.
Diplomats and experts have cast doubt on reports that China has sent missiles or even air defence systems to Iran. This would be a significant escalation and a departure from China’s usual approach.
China has consolidated its position as a world leader in manufacturing – He Penglei/China News Service/VCG via Getty
The Telegraph has shown how China provided Russia with components and machine tools to assemble drones and other weapons, giving Vladimir Putin just enough to assist his invasion without crossing the threshold of sending finished weapons.
China has taken a similar approach with Iran, sending precursor chemicals for missile production and satellite imagery to track US military movements – significant support, certainly, but not enough to have a decisive effect.
Dispatching completed weapons systems “would be counter-productive”, says Mr Ghiselli. “I’m not saying China will never do it … but why would China do this in a moment when it is definitely in its own interest to de-escalate?”
Still, watching these wars unfold means Beijing is developing its understanding of the transformative role of drones, the importance of information warfare and the role of artificial intelligence in conflicts. China has even sent military observers to Ukraine and eventually, may do the same in Iran.
But the lessons have probably been sobering. For now, it is hard to see how China could execute a Venezuela-style operation to capture a head of state, let alone launch precision strikes to assassinate top officials.
It is clear that American military and intelligence prowess remains both fearsome and unmatched, given its ability to conduct such wide-ranging operations in South America and the Middle East.
“China has learned it is not yet ready to face a direct military showdown with America,” says Ms Liu, pointing to China’s lack of intel capabilities and soldiers with combat experience.
Perhaps that day will never come, as there are plenty of other ways for Beijing and Washington to conduct their rivalry, from trade to cyber espionage, though China is seeing now that global sanctions perhaps do not always have teeth – but may in time push greater use of the yuan over the dollar.
The damage inflicted on Iran from US strikes is clear – and Xi Jinping is watching carefully – AFP via Getty
China may have little appetite to go to war with America but Mr Xi will certainly still prepare for the possibility – the dragon will not be caught on the back foot.
For now, Beijing, like the rest of the world, faces the threat of a global economic meltdown, spurred by energy price volatility, though it remains relatively resilient with a solid reserve of oil supplies at home and diversified energy sources.
Still, this is difficult to stomach at a time when Beijing has set its lowest annual economic growth target on record.
For the rest of the world, oil dependency has meant price shocks and electricity blackouts; Europe now risks running out of jet fuel within six weeks, leading to flight cancellations.
In the long term, this will only accelerate renewable energy adoption as nations scramble to reduce reliance on traditional sources in hopes of being better prepared for the next crisis.
China is poised to benefit handsomely as the leader in renewables, from raw materials, such as rare earths, all the way through to the manufacturing of end goods, like solar panels and electric vehicles.
“You cannot have any green transition without China,” said Mr Ghiselli.
But perhaps the biggest lesson for Mr Xi is how inflicting economic pain on adversaries can change the course of a war.
Iran’s targeting of critical energy infrastructure in the Gulf and its closure of the Strait of Hormuz have created turmoil in global energy markets.
China has long been adept at weaponising economic measures, but the current war will cement its determination to move toward greater self-sufficiency so that it cannot be constrained by the US – or the broader West – in the event of conflict, or as a way to stunt its rise.
“The current US blockade of the Strait of Hormuz triggers the Chinese Communist Party’s long-standing anxieties about a similar blockade,” says Mr Filler.
“Beijing will be looking to shore up its own vulnerabilities in trade and natural resource dependencies, especially as it pertains in the maritime context through the Strait of Malacca.”
The ruling party has long drawn on socialist theory – particularly that of Friedrich Engels – with the leadership seeing “economics as not just the primary requirement for national security as it makes having a strong military possible, but as more important than the military, because it also provides influence for most all other national interests”, says Mr Filler.
This is why much of China’s flagship foreign policy Belt and Road initiative “continues to be motivated by finding [trade route] alternatives… certainly overland via Central Asia but also via new railways, pipelines, ports and roads”, he continued.
Questions have swirled over whether Mr Xi will take advantage of a distracted Mr Trump to move on Taiwan.
Xi Jinping reviews troops in Beijing. How will the Iran conflict affect his plans for Taiwan? – Xinhua/Shutterstock
Mr Xi has watched Mr Trump withdraw Patriot interceptors and a Thaad missile defence system from South Korea, the only one in Asia, because they are needed in the Middle East for his war in Iran.
But that would be at odds with recent developments – including the visit of a major Taiwanese political leader – suggesting continued interest in a peaceful approach.
Experts say the real indicator of when China might choose to move is whether it has achieved economic self-sufficiency.
“Beijing won’t invade Taiwan unless it has gotten to the stage of self-reliance that it no longer needs to rely on the West, in particular semiconductors,” says Mr Parton.
Thus, China’s position comes full circle.
At the end of the day, what China wants most is exactly what Mr Xi has continually called for: global stability and predictability.
Even a conclusion to the war in Iran can be beneficial to China – it will be a net positive that US influence in the region will be significantly weakened after this war, providing an opening for China to swoop back in and profit from post-war reconstruction.
But the long-term reason is that Mr Xi wants some control over the US decline as a superpower and China’s own ascent.
An uncontrolled, rapid demise means that China will have to contend with far more chaos than it cares to handle at the moment. Similarly, an unpredictable and reckless Mr Trump who has demonstrated no qualms about using forces makes the world a more dangerous place – and especially China.
China, after all, has benefited handsomely from the US-led global order that has ensured peace for decades, allowing it to invest financially and diplomatically all over the world, boosting its domestic economy and international standing.
This is why Mr Xi remains eager for Mr Trump’s scheduled visit to happen in May, already postponed from an earlier date. It is an opportunity to set in motion more meetings aimed at establishing guardrails for competitive engagement so the world’s two greatest and most powerful rivals can co-exist.
As Ms Liu wrote for Foreign Affairs: “The great paradox, then, is that Xi has gotten both what he most desired – a US that is less reliable, less confident and less capable – and what he most feared: a more volatile international system.”