Britain’s Prince William thanks Poland’s president for supporting Ukraine.

Prince William of Britain met with President Andrzej Duda of Poland on Thursday during a two-day visit to Poland intended to highlight Britain’s support for Ukraine.

He thanked the president for “the ongoing generosity and hospitality of the Polish people,” in a tweet, a day after he said he wanted to “personally thank” British and Polish troops supporting Ukraine’s armed forces.

Earlier on Thursday, William laid a wreath at Warsaw’s Tomb of the Unknown Soldier, just as Queen Elizabeth II and Prince Philip did in 1996.

William arrived in Warsaw on Wednesday on a visit that had been unannounced. He then traveled to the southeastern city of Rzeszow, roughly 50 miles from Poland’s border with Ukraine, where he told troops that “everyone back home thoroughly supports you.”

He also met with the Polish defense minister, Mariusz Blaszczak, who called the visit a “great honor” and emphasized that British and Polish troops were working “side by side” to strengthen not just Poland’s security, but also the security of NATO’s entire eastern flank.

Poland and Britain have been at the forefront of countries providing aid to Ukraine. Each pledged this year to send Western battle tanks in an effort to coax other allies into doing the same, a move that proved successful. Mr. Duda also said last week that his country would be the first NATO nation to give Ukraine fighter jets.

William was the latest high-profile figure to visit Rzeszow during the war. The city serves as a vital hub of Western military and humanitarian aid. President Biden visited American troops stationed there last year and traveled through the city’s airport on his way to Kyiv in February. And President Volodymyr Zelensky of Ukraine has visited as well, bestowing the honorary title of “Rescuer City” on Rzeszow for its role in supporting Ukraine.

William also met with refugees from Ukraine, including children, and said in a tweet after a visit to an accommodation center that from “the welcoming community and supportive volunteers,” it was “clear to see how the 300 Ukrainian women and children staying here can remain so positive having experienced such hardship.”