Prince Williammade a surprise trip to Poland on Wednesday to thank the people for their “humanity and hospitality” during the ongoing crisis in neighboring Ukraine.

The Prince of Wales, 40, spent Wednesday afternoon with troops from Britain and Poland, who are helping to train Ukrainian forces. He then headed to Warsaw to meet some of the 300 Ukrainian women and children, who — as recently-arrived refugees — are being housed in a converted office block.

It is the first time Prince William has visited Poland since 2017 whenhe toured the country withhis wife,Kate Middleton, and children, Prince George and Princess Charlotte. (The couple welcomed their third child,Prince Louis, in 2018.)

Prince William, the Prince of Wales.Tim Rooke/Shutterstock

Prince William visits the Territorial Defence Force in Rzeszow.

Aides point out thatPrince Williamand Princess Kate have followed the Ukrainian crisis since the beginning and have had an ongoing dialogue with Ukraine PresidentVolodymyr Zelenskyyand first lady Olena Zelenska.

“But he wanted to look into the eyes of the Polish people and say thank you for everything they have done. That is the main message he was putting across to the Polish and British military,” his spokesman tells PEOPLE.

Prince William visits British Armed Forces in Rzeszow

Upon landing in Warsaw,Prince Williamsaid it was “fantastic” to be back in Poland.

“Our nations have strong ties. Through our cooperation in support of the people of Ukraine and their freedom, which are also our freedoms and yours, these ties are further strengthened,” he said. “I’m here because I want to personally thank the Polish and British troops working in close and crucial partnership. I also want to pay tribute to the inspiring humanity of the Polish people. You have opened your hearts as much as your homes.”

Tim Rooke/Shutterstock

Prince William and Polish Defence Minister, Mariusz Blaszczak visit the Territorial Defence Force in Rzeszow.

Prince Williamtold the troops, “Thank you for hosting me today. I just wanted to come here in person to say ‘thank you’ for all you are doing — keeping everyone safe out here and keeping an eye on what’s going on.”

“Just a big thank you for what you do on a day-to-day basis,” he added. “I know some of you are coming to the end of your time out here. So looking forward to a bit of ‘R and R’ when you get home. You are doing a really important job out here and defending our freedoms is really important and everyone back home thoroughly supports you. And everything you are doing with the Poles and our Polish counterparts in providing that safety is really important. Lovely to meet you and good luck.”

Prince William visits British Armed Forces in Rzeszow

Can’t get enough ofPEOPLE’s Royals coverage?Sign up for our free Royals newsletterto get the latest updates onKate Middleton,Meghan Markleand more!

Prince William, the Prince of Wales.Chris Jackson - Pool/Getty

Prince William, Prince of Wales poses for photos with a young Ukrainian resident after hearing about experiences of moving to Poland at an accommodation centre during his visit on March 22, 2023 in Warsaw, Poland. The centre, at the frontline of the humanitarian crisis, houses around 300 Ukrainian women and children and provides residents with two meals per day, while also offering a range of other services including Polish language lessons, a children’s play area and psychological support.

“This centre provides two free meals a day, Polish language lessons, psychological & employment support and even a free shop giving its residents access to clothes as well as sanitary and hygiene products. It really is a sanctuary on the frontline of the humanitarian crisis,“Prince William’s office shared in atweet.

At the center,Prince Williamposed for selfies with children and even teamed up with a girl for a round of doubles ping pong.

Prince William, Prince of Wales holds hands with Marco Tymofii, aged 4, as he speaks with Ukrainian residents about their experiences of moving to Poland at an accommodation centre during his visit on March 22, 2023 in Warsaw, Poland. The centre, at the frontline of the humanitarian crisis, houses around 300 Ukrainian women and children and provides residents with two meals per day, while also offering a range of other services including Polish language lessons, a children’s play area and psychological support.

On Thursday, the Prince of Wales will pay his respects to the country’s war dead at the Tomb of the Unknown Soldier and have talks with the Polish President Andrzej Duda at the Presidential Palace. There, he will “give thanks to the Polish for their humanity and hospitality over the past year and also underline the special relationship that the U.K. has with Poland and celebrate the Polish diaspora who are in the United Kingdom.”

He will also see how refugees who have been in Poland for about a year, since the start of the crisis, are being supported and have settled in the country. He will visit a food hall in Warsaw, where he’ll chat with groups of young Ukrainians who have found employment or are continuing their studies in Poland.

Prince William visits the Territorial Defence Force in Rzeszow.

The visit to President Duda andPrince William’s desire to go to witness how the military is faring in a conflict taking place in a three-hour-long flight from London is very much a sign of his burgeoning role on the world stage. The royal was already doing this before his grandmotherQueen Elizabethdied in September, but it has taken on a greater significance now that he is first in line to the throne.

“This is a continuation of the evolution of his role as a global statesperson,” his spokesman adds. “We talk often about him using his global platform for the good of the environment, via Earthshot. But this is the first opportunity for him to take a visit of this kind as Prince of Wales and, given that it is one of the biggest political issues facing every country on the planet, this is a demonstration of him growing as a statesmanlike figure.”

Prince William and Polish Defence Minister, Mariusz Blaszczak visit the Territorial Defence Force in Rzeszow.

The prince — who asked for the trip to be organized — is acutely aware that Poland has been on the “frontline of the refugee crisis” in Europe that has followed the war in its neighbor, his spokesman adds. “They have shown great humanity in opening their doors to welcome people into their homes. Given that there is such a large and vibrant Polish diaspora in the U.K., it has also brought it home just how much the Polish people have given to the Ukrainians.”

source: people.com