Wales' World Cup send-off ended in a 1-0 defeat to Poland and relegation from the Nations League's top tier.
Karol Swiderski, just as he had done when the two sides met in Wroclaw in June, came up with a second-half winner to seal Wales' demotion to League B.
Wales needed victory in Cardiff to secure their place in the top flight of European football and relegate Poland to the second tier.
But Poland stood firm after Swiderski's strike and Wales could not find a way through, with Gareth Bale going the closest when heading against the crossbar in stoppage time.
This was Wales' final game before their first at a World Cup for 64 years, their Qatar opener against the United States on November 21 being less than two months away.
Skipper Bale returned to the starting line-up to win his 108th cap, just one short of Chris Gunter's men's national team record.
Poland, 26 on the FIFA rankings and seven places below Wales, were led by Barcelona striker Robert Lewandowksi and in need of a World Cup tonic themselves following some stuttering form.
The first goal attempt took 25 minutes to arrive when Lewandowski met a cross with his shoulder, rather than his head, and Wayne Hennessey safely gathered. Wales’ first chance came when Cabango's clearance allowed the speedy Daniel James to sprint into space.
James' effort was blocked by Wojciech Szczesny, and the Juventus goalkeeper kicked away the winger's follow-up cross with an outstretched leg. The contest was suddenly opening up and Szczesny was out from his goal to smother after Connor Roberts' long throw had found Bale.
🎙 "The flick there from Lewandowski is outstanding."
— Premier Sports (@PremierSportsTV) September 25, 2022
Poland lead through Karol Swiderski and an incredible assist from Robert Lewandowski. 🔥 pic.twitter.com/5K5Ly0igLk
Hennessey almost suffered embarrassment after letting a back pass roll under his foot. The goalkeeper had to stretch a long limb on the goal-line before clearing under pressure from Lewandowski.
Piotr Zielinski's 20-yard shot caused fewer alarms, and Wales came close to taking the lead when Brennan Johnson's effort struck James and fell inches wide of the post with Szczesny beaten.
The deadlock was broken after 57 minutes, and it owed as much to the brilliance of Lewandowski as the expert finishing of Swiderski. Lewandowski's sublime flick freed Swiderski for a controlled shot that went through the legs of Hennessey.
Wales almost replied instantly as Johnson wriggled free for a shot which Szczesny tipped around a post.
Moore and Rubin Colwill were sent on as Wales went for broke. Szczesny showed his agility again to deny James and Rodon headed over, and Wales knew their luck was out when Bale's header bounced back off the bar.