European leaders have warned at the World Economic Forum in Davos against a return to nationalism, with France's Emmanuel Macron and Germany's Angela Merkel calling for more global cooperation to harness the forces of globalisation.

The speeches by Merkel, Macron and Italy's Paolo Gentiloni -- leaders of the continent's three biggest economies -- came one day before U.S. President Donald Trump arrives at the annual summit in the Swiss Alps to promote his America First policies.

Since taking power one year ago, Trump has pulled the United States out of international agreements on trade and climate, and threatened to torpedo a deal to curb Iran's nuclear programme, unsettling partners who have looked to Washington to help shape global rules since World War Two.

Macron spoke for a full hour, receiving a standing ovation from the crowd of CEOs, bankers and top academics, after he called for a "global compact" to address the economic forces that have led to rising inequality and a surge in populism.

"We have a situation where people are being told, on social and financial issues, that the answer is to do less, to cut our taxes, there is no limit, it's a race to the bottom," Macron said, weeks after Trump pushed through a large cut in corporate taxes that is expected to lure investment to the United States.

"If we aren't able to agree a standard of international cooperation, we will never convince the middle class, the working class that globalisation is good for them."

LESSONS OF HISTORY

Merkel, in her return to the world stage after months of political limbo in Germany, evoked the two world wars and questioned whether the West had learned the lessons from those conflicts.

"We are seeing nationalism, populism and in a lot of countries a polarised atmosphere," Merkel told the packed auditorium where Trump will speak on Friday.

"We believe that isolation won't help us. We believe we need to cooperate, that protectionism is not the answer," she said, asking: "Have we really learned from history, or haven't we?"

Pressed on what his message to Trump would be, Italian Prime Minister Paolo Gentiloni said it was legitimate to defend one's own citizens, companies and economic, but "there is a limit".

After suffering a series of crises over the past decade -- from euro turmoil, to Ukraine, refugees and Brexit -- Europe is feeling confident again.

Its economy has rebounded and the election of pro-European centrist Macron in France has injected new momentum into efforts to reform the European Union.

"Europe has been a phenomenal story this year," Harvard economist Kenneth Rogoff told the forum this week.

Macron, switching between English and French, took several tongue-in-cheek swipes at Trump, with whom he's formed an odd bond since the two engaged in a bone-crushing macho handshake in their first meeting back in May.

At the outset of his speech, the 40-year-old French president joked about heavy snowfall in Davos, saying it might lead some people to question whether global warming was really a problem.

"Fortunately you didn't invite anybody sceptical of global warming this year," Macron, glancing over at WEF founder Klaus Schwab, said to laughs.

Merkel, weakened by an inconclusive German election in September, appeared days after the Social Democrats (SPD) agreed to enter coalition talks with her conservatives.

"Europe must take its fate into its own hands," she said, echoing a message she sent after a contentious Group of Seven summit with Trump back in May.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.