Arkadiusz Milik converted a twice-taken penalty as Poland came from behind to draw 1-1 with 10-man Portugal in the Nations League.
Poland were already relegated from Group 3 but, after Andre Silva scored to give Portugal a first-half lead, Milik's equaliser ensured Jerzy Brzeczek's side a share of the points and a place in pot 1 for the Euro 2020 qualifying draw at the expense of Germany.
Portugal, who clinched a place in the Nations League Finals with a goalless draw against Italy on Saturday, put in an improved display but Poland's physical approach helped them muscle their way back into the contest after the break.
Danilo Pereira felled Milik in the box in the 62nd minute and was shown a red card, with the striker having to score twice from 12 yards out after his initial attempt was ruled out due to encroachment.
Renato Sanches was Portugal's most dangerous attacking outlet and it was his corner that was converted by Silva, whose flicked effort caught Wojciech Szczesny out to reach the net.
Poland almost hit back within minutes when Tomasz Kedziora sent a looping header onto the crossbar, the woodwork keeping Portugal ahead at half-time.
The second half was played at a faster pace and swung from end to end before Poland found a response just after the hour mark.
Danilo reached his arm across Milik's back as the Napoli forward bore down on goal and referee Sergey Karasev had no hesitation in sending off the Porto player, though the hosts held out for a draw after conceding from the spot.
What does it mean? Both sides satisfied
Portugal remain unbeaten in their last six games and will be confident of improving when Bernardo Silva returns from injury, while Poland will be delighted to have potentially eased their path to Euro 2020.
Sanches steps up
In the absence of Bernardo Silva and Cristiano Ronaldo, Sanches was Portugal's attacking catalyst and the man once dubbed the nation's great hope appears to be back on track.
Danilo should know better
Placing an arm on a striker as they prepare to shoot is only ever going to produce one outcome, and the experienced Danilo can hardly have been surprised when Milik tumbled to the ground.
Portugal can look forward to the Nations League Finals on home turf in 2019, while Poland's attention now turns to qualifying for Euro 2020.
|Santos turn to ex-Argentina boss Sampaoli|
|Muller could miss Champions League last 16 after Tagliafico kick|
|Home hope Bekker out in front at Alfred Dunhill Championship|
|Van Bommel in touch with Robben over PSV reunion|
|Pinarello chief confident over Team Sky future|
|Stade make Ospreys tickets free in tribute to teenager|
|WRC great Loeb seals Hyundai switch|
|Madrid rumours better than sack talk, says Pochettino|
|Nadal to join Federer at 2019 Laver Cup|
|Prigoda smashes world record, Hosszu dethroned in Hangzhou|
|Former Juve CEO Marotta takes over at Inter|
|Glenn to stand down as FA boss next year|
|Muller apologises to Tagliafico for kick to the head|
|Pereira pleads for more Manchester United chances|
|Griffin hails ´phenomenal´ Lowry after Warriors demolition|
|I´ve played with Zidane and Henry, but Messi is something else – Pires|
|Dragons forward Jack de Belin charged with sexual assault|
|Durant: Raptors are the real deal|
|Cocu bids farewell to Fenerbahce after ´mutual agreement´ is made over October sacking|
|Australia unchanged for historic Perth Test|
|Champions League draw: The possible last-16 ties|
|Southee happy to be back on home soil|
|I wouldn´t swap Dembele for Neymar – Pires|
|Canelo ready to risk heavy weather against Fielding|
|Raptors upstage Warriors, Davis leads Pelicans with 44 points|
|India skipper Kohli excited by green Perth wicket|
|PSG? I haven´t decided my future yet – De Jong|
|Marcelo: Real Madrid don´t have attitude problem|
|India pair Ashwin, Rohit ruled out of second Test|
|Kovac: Ajax-Bayern draw was amazing|
|Sims re-signs with Dragons until 2022|
|Derrius Guice injury update: Redskins RB (knee) has rehab setback, undergoes 3 more procedures|
|Emery: Arsenal could sign defender in January|
|Phillies sign McCutchen to three-year deal|
|O´Neal thinks his Lakers teams could ´easily´ beat Warriors|
|A-League to add two clubs by 2020|
|Curry says he was ´obviously joking´ about moon landing comments|
|Now the beautiful part starts – Ronaldo ready for Champions League knockout stage|
|Bayern have a lot more potential – Lewandowski not satisfied despite top spot|
|Lyon star Fekir shares plaudits for Champions League progression|
|Mourinho not surprised by United´s defeat to Valencia|
|Motivation no issue for Benfica, claims Vitoria|
|Lewandowski finishes Champions League group stage as top scorer|
|Mourinho: We scored two goals and lost 2-1!|
|England have a diamond - Guardiola hails City´s Foden|
|Sterling´s carefree display invites us to love football more than others hate|
|Juventus achieved their objective, despite everything going wrong – Allegri|
|Never say never - Schmidt not ruling out All Blacks role|
|Bologna´s winning start ended in BCL|
|Di Francesco critical of Roma performance|
|Shakhtar Donetsk 1 Lyon 1: Fekir fires French side through in Group F|
|Benfica 1 AEK Athens 0: Grimaldo sends hosts out on a high|
|Young Boys 2 Juventus 1: Hoarau double seals famous victory|
|Manchester City 2 Hoffenheim 1: City through as group winners after Sane brace|
|Ajax 3 Bayern Munich 3: Kovac´s men clinch top spot in Amsterdam thriller|
|Valencia 2 Manchester United 1: Jones scores own goal as Red Devils limp through|
|Solari accepts responsibility for Madrid´s heaviest home defeat in Europe|
|WATCH: Rooney backs Rocky ahead of Canelo showdown|
|McLaren to collaborate with Team Bahrain Merida|
|Las Vegas to host 2020 NFL Draft|
|Stade teenager tragically dies after neck injury|
|Cahill may need to leave Chelsea if he wants to play, admits Sarri|
|Viktoria Plzen 2 Roma 1: Chory winner takes hosts into Europa League|
|Real Madrid 0 CSKA Moscow 3: Champions humiliated at Bernabeu|
|Sarri condemns ´disgusting´ Sterling abuse|
|Hansen hails outstanding Ben Smith ahead of Pau switch|
|Foden, Sterling start for Manchester City v Hoffenheim|
|Sky decision will not affect us in 2019, insist Froome and Thomas|
|Al Ain 3 Team Wellington 3 (aet, 4-3 on penalties): Shootout heartbreak for semi-pros in Club World|
|Jackson to remain Ravens´ starting QB despite Flacco return|