Although China depends on the Middle East for its oil supplies, it has long taken a low-profile approach to the region’s diplomatic and other disputes, only recently beginning to expand its role, especially in the Syrian crisis.

Before Xi’s visit, a Chinese analyst said Beijing would do what it can to ease soaring tensions between Saudi Arabia, the region’s main Sunni power, and its Shiite rival Iran.