Fulham striker Aleksandar Mitrovic scored a dramatic late winner as Serbia booked their place at next year's World Cup and condemned Portugal to the play-offs.
Hosts Portugal only needed a draw to qualify and looked to have done enough, with Renato Sanches' opener cancelled out by Dusan Tadic's equaliser.
Mitrovic, who started the game on the bench, was sent on at half-time but Portugal were wise to his threat and kept him largely quiet.
However, the home side let their concentration slip in the final seconds and Mitrovic pulled away from his marker to meet Tadic's deep ball and send a downward header into the back of the net.
The goal prompted wild celebrations on the bench and on the pitch from the Serbia players and staff while the Portuguese team stood in disbelief with the home crowd silenced.
Serbia finish top of Group A with 20 points, three more than Portugal, whose hopes of playing in Qatar next year rest on two rounds of play-offs in March.
The defeat also ended Portugal's unbroken winning run in home World Cup qualifiers which had stretched back to October 2013.
It had looked like being a long night for the visitors after they fell behind inside just two minutes when Sanches finished confidently after Bernardo Silva had won possession.
But Serbia did not let their heads drop and deservedly equalised when Rui Patricio failed to keep out Tadic's shot, which crept over the line.
Cristiano Ronaldo, himself familiar with scoring late goals with Manchester United this season, was quiet and came closest with a free-kick in the first half.
Instead it was Mitrovic who provided the drama in the closing stages as his header secured a famous win for Serbia.
Latest Stories
-
CLOGSAG vows to resist partisan appointments in Civil, Local Government Service
27 minutes -
Peasant Farmers Association welcomes Mahama’s move to rename Agric Ministry
29 minutes -
NDC grateful to chiefs, people of Bono Region -Asiedu Nketia
31 minutes -
Ban on smoking in public: FDA engages food service establishments on compliance
32 minutes -
Mahama’s administration to consider opening Ghana’s Mission in Budapest
34 minutes -
GEPA commits to building robust systems that empower MSMEs
37 minutes -
Twifo Atti-Morkwa poultry farmers in distress due to high cost of feed
39 minutes -
Central Region PURC assures residents of constant water, power supply during yuletide
40 minutes -
Election victory not licence to misbehave – Police to youth
42 minutes -
GPL 2024/2025: Nations thrash struggling Legon Cities
44 minutes -
Electoral offences have no expiry date, accountability is inevitable – Fifi Kwetey
45 minutes -
Ghanaians to enjoy reliable electricity this Christmas – ECG promises
52 minutes -
Police deny reports of election-related violence in Nsawam Adoagyiri
55 minutes -
‘We’re not brothers; we’ll show you where power lies’ – Dafeamekpor to Afenyo-Markin
59 minutes -
EPA says lead-based paints are dangerous to health, calls for safer alternatives
3 hours