German President Frank-Walter Steinmeier on Thursday urged trans-Atlantic unity as he wrapped up a yearlong German charm offensive in the US.

Steinmeier said the US and Germany "need each other if democracy and freedom are to have a future in the world." However, he appeared to make veiled criticism of US President Donald Trump, whose administration has steadily undermined US relations with Europe.

"I have come here as the federal president to raise our sights away from the day-to-day emphasis on tweets and tirades and beyond the indignation that is often both predictable and ineffective," Steinmeier said at the Goethe Institute in Boston.

Trump has often used fiery tweets to criticize relations with other countries, including Germany, one of the US' biggest postwar allies. He has accused Berlin of failing to pay for collective security under NATO and engaging in unfair trade practices.

Read more: How the Trump White House views Germany

Watch video 02:00 Share Steinmeier visits US landmarks Send Facebook google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink https://p.dw.com/p/3SK9g German President Steinmeier visits US cultural landmarks

'Friendship with mutual respect'

Earlier this week, Steinmeier harked back to the days of amicable ties between the countries, referring to the political support of former US presidents for German reunification.

"That America was always concerned with supporting a united Europe," Steinmeier said. "That America wanted a real partnership and friendship with mutual respect. Much of this does not seem self-evident today."

Read more: Why is Donald Trump ignoring Germany?

His visit formally concluded a multimillion-euro publicity campaign called "Wunderbar Together" (Wonderful Together) aimed at revitalizing amicable ties between Germany and the US. The trip comes days before the 30th anniversary of the fall of the Berlin Wall.

"If we still believe in the great task of democracy, we should still believe in this trans-Atlantic partnership," Steinmeier said. "I do."

Watch video 04:03 Share How sweet are German-US relations? Send Facebook google+ Whatsapp Tumblr linkedin stumble Digg reddit Newsvine Permalink https://p.dw.com/p/3LVgM How sweet are German-US relations?

Every evening, DW's editors send out a selection of the day's hard news and quality feature journalism. You can sign up to receive it directly here.

ls/rt (AP, dpa)