German Chancellor Angela Merkel receives U.S. President Donald Trump in the Hotel Atlantic, on the eve of the G20 summit, for bilateral talks on July 6, 2017 in Hamburg, Germany.
PHOTO: Pool/Getty Images
German Chancellor Angela Merkel receives U.S. President Donald Trump in the Hotel Atlantic, on the eve of the G20 summit, for bilateral talks on July 6, 2017 in Hamburg, Germany.
Now playing
00:45
Trump, Merkel begin visit with handshake
German Chancellor Angela Merkel (R) and US President Donald Trump attend a panel discussion titled "Launch Event Women's Entrepreneur Finance Initiative" during the G20 summit in Hamburg, northern Germany, on July 8, 2017.
Leaders of the world's top economies gather from July 7 to 8, 2017 in Germany for likely the stormiest G20 summit in years, with disagreements ranging from wars to climate change and global trade. / AFP PHOTO / POOL / Michael Kappeler        (Photo credit should read MICHAEL KAPPELER/AFP/Getty Images)
PHOTO: MICHAEL KAPPELER/AFP/Getty Images
German Chancellor Angela Merkel (R) and US President Donald Trump attend a panel discussion titled "Launch Event Women's Entrepreneur Finance Initiative" during the G20 summit in Hamburg, northern Germany, on July 8, 2017. Leaders of the world's top economies gather from July 7 to 8, 2017 in Germany for likely the stormiest G20 summit in years, with disagreements ranging from wars to climate change and global trade. / AFP PHOTO / POOL / Michael Kappeler (Photo credit should read MICHAEL KAPPELER/AFP/Getty Images)
Now playing
00:47
G20 closes with rebuke to Trump
Putin Trump election meddling meeting G20 new_00005509.jpg
PHOTO: Russia 24
Putin Trump election meddling meeting G20 new_00005509.jpg
Now playing
01:13
Putin: I think Trump agreed Russia didn't meddle
PHOTO: Russia-24
Now playing
00:44
Putin: Trump is different than he is on TV
the daughter of the US President Ivanka Trump and the Managing Director of the International Monetary Fund (IMF) Christine Lagarde attend the Women's Entrepreneurship Finance Event at the G20 Summit in Hamburg, Germany, July 8, 2017. / AFP PHOTO / SAUL LOEB        (Photo credit should read SAUL LOEB/AFP/Getty Images)
PHOTO: SAUL LOEB/AFP/AFP/Getty Images
the daughter of the US President Ivanka Trump and the Managing Director of the International Monetary Fund (IMF) Christine Lagarde attend the Women's Entrepreneurship Finance Event at the G20 Summit in Hamburg, Germany, July 8, 2017. / AFP PHOTO / SAUL LOEB (Photo credit should read SAUL LOEB/AFP/Getty Images)
Now playing
01:16
Ivanka Trump sits in for dad at G20 meeting
Now playing
01:32
Trump praises Ivanka's work at G20 event
US President Donald Trump (C), Japanese Prime Minister Shinzo Abe (R) and South Korean President Moon Jae-in pose for photos before attending the Northeast Asia Security Dinner at the US Consulate General Hamburg on the sidelines of the G20 Summit in Hamburg, Germany, July 6, 2017. (SAUL LOEB/AFP/Getty Images)
PHOTO: SAUL LOEB/AFP/Getty Images
US President Donald Trump (C), Japanese Prime Minister Shinzo Abe (R) and South Korean President Moon Jae-in pose for photos before attending the Northeast Asia Security Dinner at the US Consulate General Hamburg on the sidelines of the G20 Summit in Hamburg, Germany, July 6, 2017. (SAUL LOEB/AFP/Getty Images)
Now playing
01:48
Gergen: Trump not seen as world leader at G20
Now playing
00:47
President Trump meets with PM May
HAMBURG, GERMANY - JULY 07: In this photo provided by the German Government Press Office (BPA) Donald Trump, President of the USA (left), meets Vladimir Putin, President of Russia (right), at the opening of the G20 summit on July 7, 2017 in Hamburg, Germany. The G20 group of nations are meeting July 7-8 and major topics will include climate change and migration.  (Photo by Steffen Kugler/BPA via Getty Images)
PHOTO: Steffen Kugler/BPA via Getty Images
HAMBURG, GERMANY - JULY 07: In this photo provided by the German Government Press Office (BPA) Donald Trump, President of the USA (left), meets Vladimir Putin, President of Russia (right), at the opening of the G20 summit on July 7, 2017 in Hamburg, Germany. The G20 group of nations are meeting July 7-8 and major topics will include climate change and migration. (Photo by Steffen Kugler/BPA via Getty Images)
Now playing
00:55
Tillerson: Trump, Putin talked 2016 election
Trump Pena Nieto Mexico border wall G20_00000000.jpg
Trump Pena Nieto Mexico border wall G20_00000000.jpg
Now playing
01:08
Trump: 'Absolutely' want Mexico to pay for wall
Trump Putin G20 handshake_00000000.jpg
PHOTO: Bundesregierung/Facebook
Trump Putin G20 handshake_00000000.jpg
Now playing
01:07
Trump, Putin shake hands at G20
US President Donald Trump and Russia's President Vladimir Putin hold a meeting on the sidelines of the G20 Summit in Hamburg, Germany, on July 7, 2017. (SAUL LOEB/AFP/Getty Images)
PHOTO: SAUL LOEB/AFP/Getty Images
US President Donald Trump and Russia's President Vladimir Putin hold a meeting on the sidelines of the G20 Summit in Hamburg, Germany, on July 7, 2017. (SAUL LOEB/AFP/Getty Images)
Now playing
01:05
Tillerson: Trump, Putin reach Syria agreement
Trump poland speech
PHOTO: CNNi
Trump poland speech
Now playing
00:54
President Trump calls out Russia in Poland
Now playing
00:46
Trump: North Korea is behaving dangerously
Now playing
00:56
Trump: We don't want fake news in the US
Now playing
00:47
Trump: Poland sets example for NATO members
(CNN) —  

President Donald Trump, coming off a short visit to Poland, was greeted here in Germany on Thursday by the complex reality of foreign relations in the form of a pre-G20 meeting with German Chancellor Angela Merkel.

The two met at the Hotel Atlantic Kempinski Hamburg, where they shared a handshake and brief conversation before the two world leaders left reporters.

It was an instant contrast to the optics of their first meeting in March, which signaled a strained relationship.

Trump did not shake Merkel’s hand before cameras in the Oval Office, although they did at other times of her White House visit. And at a news conference later in the day, much to Merkel’s chagrin, Trump make a joke about American spying practices that were found to have swept up the German chancellor’s conversations during President Barack Obama’s administration.

“As far as wiretapping I guess by this past administration, at least we have something in common, perhaps,” Trump said, turning to Merkel, who didn’t smile.

Merkel, playing host to the international G20 conference on Friday and Saturday in her hometown of Hamburg, has seemingly ensured the conference will be full of prickly issues for Trump, whose relationship with the powerful German leader has so far been frosty.

The priorities of this meeting of the G20 include climate change, immigration and trade, all topics where Trump is at odds with the bulk of European leaders. And Merkel further set up a conflict with Trump in a speech to Parliament in June.

“Whoever believes the problems of this work can be solved by isolationism and protectionism is making a tremendous error,” Merkel said, a not-so-thinly veiled swipe at Trump, who ran for president by promising nationalism, tightened borders, stricter trade deals and has since pulled out of the Paris climate accord.

The two world leaders are meeting Thursday evening before both taking part in broader conversations during the G20.

Trump’s relationship with Merkel has been icy ever since the campaign, when Trump questioned the German leader’s immigration policy.

“What’s happening in Germany, I always thought Merkel was like this great leader. What she’s done in Germany is insane. It is insane. They’re having all sorts of attacks,” Trump said in an October 2015 interview.

German policy towards Trump

Merkel, who is in the midst of running for her fourth term as chancellor of Germany, has taken a forceful posture on the United States and Trump ever since that visit, a departure from the close relationship she had with former President Barack Obama.

She even told voters at a beer hall in Bavaria in May that the United States could no longer be seen as a “reliable” ally for Europe.

Thursday afternoon’s meeting will likely foretell a difficult two days for Trump, who is coming off a near euphoric visit to Poland, where the President was showered with praise from the conservative Polish government.

Trump has so far had an array of results on foreign trips.

Though Trump was heralded when he visited Saudi Arabia and Israel on his first foreign trip, European diplomats bristled at Trump’s rhetoric about Article 5, the principle of common defense, during a speech on the North Atlantic Treaty Organization. And Trump, according to people who traveled with the President, later felt ridiculed during a meeting of the G7 in Italy when leaders implored him to stay in the Paris climate agreement.

Merkel’s meeting may not even be close to the most difficult for Trump during his three day Trip to Germany, though, when he comes face to face with Russian President Vladimir Putin on Friday.

CNN’s Kevin Liptak and Allie Malloy contributed to this report.