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
-
Gold Fields Ghana Foundation challenges graduates to maximize benefits of community apprenticeship programme
43 mins -
GBC accuses Deputy Information Minister Sylvester Tetteh of demolishing its bungalow illegally
55 mins -
Boost for education as government commissions 80 projects
1 hour -
NAPO commissions library to honour Atta-Mills’ memory
1 hour -
OmniBSIC Bank champions health and wellness with thriving community walk
1 hour -
Kora Wearables unveils Neo: The Ultimate Smartwatch for Ghana’s tech-savvy and health-conscious users
1 hour -
NDC supports Dampare’s ‘no guns at polling stations’ directive
1 hour -
Police officer interdicted after video of assault goes viral
2 hours -
KNUST’s Prof. Reginald Annan named first African recipient of World Cancer Research Fund
2 hours -
George Twum-Barimah-Adu pledges inclusive cabinet with Minority and Majority leaders
3 hours -
Labourer jailed 5 years for inflicting cutlass wounds on businessman
3 hours -
Parliament urged to fast-track passage of Road Traffic Amendment Bill
3 hours -
Mr Daniel Kofi Asante aka Electrician
3 hours -
Minerals Commission, Solidaridad unveils forum to tackle child labour in mining sector
3 hours -
Election 2024: Engagement with security services productive – NDC
3 hours