TOKYO (Reuters) - Japan and the European Union signed a wide-ranging free trade deal on Tuesday that both sides hope will act as a counterweight to the protectionist forces unleashed by U.S. President Donald Trump.

The ambitious trade pact, which creates the world’s largest open economic area, comes amid fears that a trade war between the United States and China will diminish the role of free trade in the global economic order.

“There are rising concerns about protectionism, but I want Japan and the EU to lead the world by bearing the flag of free trade,” Prime Minister Shinzo Abe said at a news conference after the signing ceremony.

The United States this month imposed 25 percent tariffs on $34 billion of Chinese goods to lower the U.S. trade deficit, and China quickly retaliated with an increase in tariffs on U.S. goods.

The Japan-EU trade deal is also a sign of shifting global ties as Trump distances the United States from long-time allies like the EU, NATO and Canada.

“We are sending a clear message that we stand against protectionism. The EU and Japan remain open for cooperation,” European Council President Donald Tusk, who speaks for the 28 EU national leaders, told reporters.

The deal removes EU tariffs of 10 percent on Japanese cars and 3 percent on most car parts. It would also scrap Japanese duties of some 30 percent or more on EU cheese and 15 percent on wines, and secure access to large public tenders in Japan.

Europe’s food sector is one of the biggest winners from the deal, which should allow it to capitalize on Japanese demand for high-quality cheese, chocolates, meats and pasta.

Japanese car and car parts makers are also expected to increase their sales to Europe, where they have lagged behind European rivals.

However, Japan’s dairy industry is expected to lose market share to European products once tariffs of up to 40 percent on some cheese imports start falling.

Japan and the EU also agreed on Tuesday to establish a regular dialogue on trade and economic policy, with the first meeting to be held before year’s end.

The dialogue will be chaired by Japan’s trade and foreign ministers and the European Commission’s vice-president for competitiveness, both sides said in a joint statement.

Both Japan and the EU, having seen Trump pull back from free trade relationships, are keen to show they remain committed to removing barriers they say hamper growth, analysts said.

Slideshow ( 5 images )

“Trade liberalization and market openness continue to march ahead in Asia-Pacific,” said Ajay Sharma, the regional head of global trade and receivables finance at banking and financial services provider HSBC.

EU accords with Singapore and with Vietnam were at the ratification stage, while deals with Indonesia, Australia and New Zealand were being negotiated, he added.

A China-EU summit ended on Monday with a communique affirming the commitment of both sides to the multilateral trading system.

Slideshow ( 5 images )

Trump pulled the United States out of the Trans-Pacific Partnership with Japan and 10 other states on his first day in office in January 2017 and has pushed to renegotiate a free trade pact with Canada and Mexico.

Trump says he is taking a hard line on trade to protect U.S. workers and U.S. companies, but critics say his approach is upending the rules of multilateral global trade.

Japan and the EU account for about a third of global GDP and their trade relationship has room to grow, according to EU officials, who expect the deal to boost the EU economy by 0.8 percent and Japan’s by 0.3 percent over the long term.