Chinese President Xi Jinping said Tuesday that globalization has powered worldwide growth and should not be blamed for the world's problems.
In an attack on the anti-globalization rhetoric that has led to the election of Donald Trump as U.S. president and the Brexit vote in Britain, Xi told a packed audience at the World Economic Forum at Davos: "It is true that economic globalization created new problems, but this is no justification to write off economic globalization altogether.
"Rather we should adapt to and guide economic globalization, cushion its negative impacts and deliver its benefits for all countries."
Xi's speech marked the first time a Chinese head of state has visited the business summit. He used the forum to promote inclusive globalization and warn that populist approaches can lead to war and poverty. He also warned that tit-for-tat trade controls would benefit no one.
"No one would emerge as a winner in a global trade war," he said. "Pursuing protectionism is just like locking one's self in a dark room. Wind and rain might be kept outside but so are light and air."
The Chinese president said the world is full of contradictions and that globalization had become viewed as a "Pandora's box" by many people, hinting at the populist movements that have spread across Western nations in the last year.
Xi likened the global economy to a "big ocean that you cannot escape from," adding that any attempt of isolation would simply not be possible.
"The right thing to do is to seize every opportunity and jointly meet challenges and chart the right course for globalization," he said.
Xi touted ideas for the global economy, suggesting that countries should adopt new policy measures and advance structural reform and calling for new growth models to be developed. He said lawmakers should aim for "fair and equitable" governance.
The president spoke to business and political leaders at the World Economic Forum, just days before populist President-elect Donald Trump is sworn into office in the United States.
Trump's campaign rhetoric included a focus on protectionism and his many critical remarks of China has led many to believe that a trade war could be in the offing in the next couple of years.
Xi's speech also comes as part of a state visit to Switzerland, just ahead of the Lunar New Year. Xi, the leader of the world's second-largest economy, embraced the opportunity at Davos to show that the international community needs to pay attention to China's interests. He spoke of China's "opening up" and the many achievements it had made.
Follow CNBC International on and Facebook.