Poland’s President-elect Karol Nawrocki met with current President Andrzej Duda at the Presidential Palace in Warsaw in his first public appearance since being elected.

Duda invited Nawrocki to a meeting on Tuesday evening, and said that he believes it will be only the first of meetings in which he will share his experiences, primarily in the field of security policy and international policy.

Nawrocki, who was supported by U.S. President Donald Trump, won 50.89% of votes in a tight race against Warsaw Mayor Rafał Trzaskowski, who received 49.11%.

The election revealed deep divisions in the country, which is located along the eastern flank of NATO and the European Union.

Nawrocki, who is set to take office on Aug. 6, is expected to shape the country’s domestic and foreign policy in ways that could strain ties with Brussels, while aligning the Central European nation of nearly 38 million people more closely with the Trump administration.

Nawrocki will replace Duda, whose second five-year term ends on Aug. 6. The Polish Constitution limits presidents to two terms.