Inter secured Champions League qualification in the most dramatic fashion as Luciano Spalletti's men came from behind to beat 10-man Lazio 3-2 on Serie A's final day.
Lazio only needed to avoid defeat in what was effectively a play-off at the Stadio Olimpico on Sunday, but they collapsed incredibly in the closing stages as captain Senad Lulic was dismissed.
Ivan Perisic's remarkable own-goal, an Adam Marusic shot deflecting in off the midfielder's face, gave Lazio the lead, but Danilo D'Ambrosio levelled with an acrobatic effort from close range.
Felipe Anderson's breakaway goal restored the lead and put Lazio in control at half-time, but the Nerazzurri somehow completed a stunning comeback with two goals in three minutes.
Referee Gianluca Rocchi had already changed his mind about one penalty for the visitors following a VAR review when he pointed to the spot after Stefan de Vrij - strongly rumoured to be joining Inter at the end of the season - hacked Mauco Icardi down in the box.
The Inter captain converted and, after Lulic was shown a second yellow card, Matias Vecino headed in Marcelo Brozovic's corner, Simone Inzaghi's men unable to muster a fightback of their own after the coach earlier made defensive changes to leave them fifth and devastated at the full-time whistle.
Icardi mishit an early chance and Antonio Candreva thudded a volley narrowly wide as Inter made a flying start.
Luiz Felipe should have opened the scoring, blazing over when picked out by a low left-wing Ciro Immobile cross, but Lazio led in the ninth minute in freakish circumstances.
Although Samir Handanovic denied rising star Sergej Milinkovic-Savic, Lazio kept the ball alive and when Marusic let fly the ball cannoned in off the face of the helpless Perisic.
Icardi missed a golden chance to level in the 22nd minute, dragging wide after Joao Cancelo's interception and throughball, Milinkovic-Savic denied by the woodwork from a superb free-kick at the other end moments later.
Inter's equaliser was no less dramatic than the opener, Thomas Strakosha keeping out D'Ambrosio's initial effort but unable to stop the full-back turning home the rebound, the goalkeeper's protests that he was fouled falling on deaf ears.
Lazio retook the lead in the 41st minute with a sensational break, Anderson rolling in a superb finish after he and captain Lulic countered at rapid pace to unlock Inter's defence.
Icardi was becoming influential but Anderson rippled the side-netting as Lazio again threatened on the counter, Spalletti's side growing increasingly desperate with their own attacks.
Rocchi awarded Inter a penalty in the 72nd minute after Milinkovic-Savic appeared to handle the ball in the box, but after consulting VAR the referee elected not to award the spot-kick, replays showing the ball hit Serbia international on the shoulder.
100 - Mauro Icardi scored tonight his 100th goal in Serie A for Inter, in 159 games played. Nerazzurro.— OptaPaolo (@OptaPaolo) May 20, 2018
But Rocchi had no choice but to point to the spot when Icardi was hacked down by De Vrij - the Lazio defender having confirmed he is leaving the club at the end of his contract.
The Inter skipper stepped up to slot in past Handanovic and set up a dramatic finale in the capital, Lulic seeing red after losing composure and needlessly bringing down Brozovic.
And when Brozovic floated a corner to the near post, Vecino met it with a glancing header to secure Inter's Champions League qualification at the expense of their heartbroken hosts, who saw substitute Patric sent from the touchline in the dying stages.
Key Opta stats:
- Inter have qualified for the next Champions League; it's the first time for the Nerazzurri since 2011-12.
- Inter have won last three away league games, as many as their previous 12.
- Lazio have picked up only two points in the last three league games, after they had won five of their previous six (1 draw).
- Danilo D'Ambrosio has scored nine of his 11 Serie A goals from corner situations.
|Messi could retire after World Cup, says Zabaleta|
|Spieth, McIlroy off to hot starts at Travelers Championship|
|Let Sampaoli say what he wants - Aguero angry at Argentina loss|
|Perisic: Messi is the best, but Argentina do not play as a team|
|Dominant England are ´spoiled´ by options, says Morgan|
|Argentina squad ´clouds´ Messi´s brilliance, claims Sampaoli|
|Fagner to start for Brazil due to Danilo injury|
|Arzani lauds leader Jedinak and remains confident on last-16 chances|
|Croatia cut Messi off in Argentina thrashing - Modric|
|Pogba: Kante, Matuidi have 15 lungs|
|Julian Nagelsmann: the Bundesliga prodigy swapping Hoffenheim for RB Leipzig|
|England dominate in Durham to close in on series whitewash|
|´Fortunate´ Federer closes in on Halle title|
|Calamity Caballero and Sampaoli tinkerings leave Argentina a broken mess|
|Wimbledon champion Muguruza confident despite Birmingham defeat|
|Argentina 0 Croatia 3: Caballero drops clanger as Messi´s men are stunned|
|Funes Mori departs Everton to join Villarreal|
|Djokovic beats Dimitrov as Kyrgios lays down a marker|
|Relegated Verona appoint World Cup winner Grosso|
|Trotz named Islanders´ new coach|
|Matic and Serbia ready for ´hellish´ Switzerland clash|
|Fleetwood flounders as Gros takes Pulheim lead|
|No attacks on Neymar, pledges Costa Rica boss Ramirez|
|Giroud return brings structure to France, but again they disappoint|
|Brighton sign Sunderland goalkeeper Steele|
|Schmeichel and Eriksen blast ´exceptionally harsh´ VAR penalty|
|Nigeria´s young World Cup squad learning on the job - Rohr|
|Moody: England players need protection|
|France 1 Peru 0: Mbappe books last-16 spot with record goal|
|I don´t need anyone to hold my hand - Verstappen|
|Captaincy comes back around to Silva as 2014 pain fades|
|We don´t want to be losers - Petkovic|
|Alba not interested in Barcelona exit as Tottenham rumours swirl|
|BREAKING NEWS: Nagelsmann to take RB Leipzig role in 2019|
|Messi cannot be compared to Maradona, claims Argentina World Cup winner Kempes|
|Mbappe sets France record with maiden World Cup strike|
|Federer comes through tough Halle test|
|Nagelsmann to leave Hoffenheim amid RB Leipzig rumours|
|Gerrard brings former Liverpool team-mate Flanagan to Rangers|
|Cipriani to be ´the calmest guy in the room´ on England return|
|C´est magnifique! Lloris earns 100th France cap|
|Belgium v Tunisia: Hazard hoping for World Cup lift off|
|WATCH: Manchester United ditch piano to welcome Fred the red|
|Hamann springs to defence of Ozil|
|Alonso non-committal on future after Le Mans triumph|
|McInally returns to Scotland starting line-up|
|Giroud & Matuidi start as Deschamps drops Dembele for Peru|
|Torreira focused on Uruguay amid Arsenal links|
|NBA Mock Draft 2018: Deandre Ayton leads intriguing first round|
|Tite will not take away Neymar´s ´genius´|
|Australia show promise but calls for Cahill ignored amid lack of cutting edge|
|Manchester United means greatness - Fred aiming for titles following Old Trafford switch|
|Denmark 1 Australia 1: Jedinak strikes back after Eriksen rocket|
|Neymar not being put at risk by Brazil, says Tite|
|Juventus complete signing of free agent Emre Can|
|Fred completes Manchester United switch|
|Dembele will not join a Spurs rival|
|What were the 0.4 per cent doing? Iceland captain marvels at TV audience|
|Forsberg ready for ´next big step´ after RB Leipzig|
|´Retired´ Brits on bench as Springboks ring changes for final Test|
|Meninga: Key Kangaroos positions up for grabs in Origin|
|FIFA gets shirty over Ronaldo claims|
|Soyuncu keen on Arsenal switch|
|Atmosphere much better after criticism, says Hummels|
|FIFA issues statement after ´questionable´ Amrabat decision|
|Cipriani and Robshaw to start for England at Newlands|
|Team Sky hit back at Hinault´s ´irresponsible´ Froome comments|
|Iran fans are the real winners as women get glimpse of the future|
|Beckham predicts England-Argentina World Cup final|
|Napoli should sign Meret, Zenga claims|