Saudi Arabia and China showcased deepening ties with a series of strategic deals on Thursday during a visit by president Xi Jinping, including one with tech giant Huawei, whose growing foray into the Gulf region has raised US security concerns.
King Salman signed a "comprehensive strategic partnership agreement" with Xi, who received a lavish welcome in a country forging new global partnerships beyond the West.
Xi's car was escorted to the king's palace by members of the Saudi Royal Guard riding Arabian horses and carrying Chinese and Saudi flags.
The Chinese leader held talks with crown prince Mohammed bin Salman, de facto ruler of the oil giant, who greeted him with a warm smile. The two stepped into a pavilion as a military band played the countries' national anthems. Xi heralded "a new era" in Arab ties.
The display stood in stark contrast to the low-key welcome extended in July to US president Joe Biden, with whom ties have been strained by Saudi energy policy and the 2018 murder of Jamal Khashoggi that had overshadowed the awkward visit.
The United States, warily watching China's growing sway and with its ties to Riyadh at a nadir, said on Wednesday Xi's trip was an example of Chinese attempts to exert influence around the world and would not change US policy towards the Middle East.
A memorandum with China's Huawei Technologies, on cloud computing and building high-tech complexes in Saudi cities, was agreed despite US concerns with Gulf allies over a possible security risk in using the Chinese firm's technology. Huawei has participated in building 5G networks in most Gulf states despite US concerns.
Prince Mohammed, with whom Biden bumped fists instead of shaking hands in July, has made a comeback on the world stage following the Khashoggi killing, which cast a pall over Saudi-US ties, and has been defiant in the face of US ire over oil supplies and pressure from Washington to help isolate Russia.
In further burnishing of his international credentials, Saudi Arabia and the United Arab Emirates said on Thursday that the prince and the UAE president jointly led mediation efforts that secured the release of US basketball star Brittney Griner in a prisoner swap with Russia.
In an op-ed published in Saudi media, Xi said he was on a "pioneering trip" to "open a new era of China's relations with the Arab world, the Arab countries of the Gulf, and Saudi Arabia".
China and Arab countries would "continue to hold high the banner of non-interference in internal affairs, (and) firmly support each other in safeguarding sovereignty and territorial integrity", he wrote.
Xi, due to meet with other Gulf oil producers and attend a wider gathering of Arab leaders on Friday, said these states were a "treasure trove of energy for the world economy ... and are fertile ground for the development of high-tech industries".
Several regional rulers including Egypt's president, Kuwait's crown prince and Sudan's leader, arrived in Riyadh on Thursday.
Saudi Arabia and other Gulf states like the United Arab Emirates have said that they would not choose sides between global powers and were diversifying partners to serve national economic and security interests.
China, the world's biggest energy consumer, is a major trade partner of Gulf states and bilateral ties have expanded as the region pushes economic diversification, raising US hackles about Chinese involvement in sensitive Gulf infrastructure.
The Saudi energy minister on Wednesday said Riyadh would stay a "trusted and reliable" energy partner for Beijing and the two would boost cooperation in energy supply chains by setting up a regional centre in the kingdom for Chinese factories.
Chinese and Saudi firms also signed 34 deals for investment in green energy, information technology, cloud services, transport, construction and other sectors, state news agency SPA reported. It gave no figures, but had earlier said the two countries would seal initial agreements worth $30 billion.
Tang Tianbo, Middle East specialist at the China Institutes of Contemporary International Relations (CICIR) - a Chinese government-affiliated think tank - said the visit would result in further expansion of energy cooperation.