Mario Balotelli and Philippe Mexes scored late on at Siena as Milan came from behind to secure a place in the UEFA Champions League.
Balotelli’s 84th-minute penalty had cancelled out Claudio Terzi’s first-half header, before Mexes netted a crucial winner three minutes from time.
A hard-fought second half saw both sides reduced to 10 men in the space of just a few minutes after Massimo Ambrosini and Christian Terlizzi were both sent off for second bookable offences.
But it was the late goals that made all the headlines as Milan guaranteed their place at European football's top table in dramatic circumstances.
Milan came into the game needing to win in order to beat Fiorentina to the final UEFA Champions League place, and they made five changes to the team that played out a controversial 0-0 draw with Roma last week.
Sulley Muntari's bizarre red card in that game meant that he was suspended, while Ignazio Abate was preferred ahead of Kevin Constant.
Robinho, Antonio Nocerino, Riccardo Montolivo and M'Baye Niang were all handed starts.
Siena, whose relegation was confirmed with a 2-1 loss away to Napoli, welcomed back Alessandro Rosina.
Milan began the game with an expected level of urgency, creating a flurry of chances during the opening exchanges.
Balotelli was the first to test Gianluca Pegolo in the Siena goal, seeing his stinging long-range effort tipped over the crossbar.
A few moments later, Cristian Zapata saw a header cleared off the line before Brazilian Robinho was unlucky not to break the deadlock when he saw his vicious swerving shot palmed away by Pegolo.
And Milan were made to pay for their profligacy just before the half-hour mark when the hosts took an unlikely lead through Terzi.
A pinpoint free-kick from Rosina found the head of the defender, who took advantage of some slack Milan marking to direct his header past Chrisitan Abbiati.
Milan nearly conjured up the perfect response just two minutes later, when Balotelli crashed a shot onto the crossbar.
And the Italian was involved again just before half-time, forcing a decent save from Pegolo as Siena weathered the Milan storm.
The second half began in similarly frustrating circumstances for Milan, as they struggled to find a decisive final ball. And 10 minutes later they were down to 10 men when Ambrosini slid in rashly on Adrian Callelo and was shown a second yellow card.
The numbers were even soon after, though, as the home side were also down to 10 men - Terlizzi given his marching orders for jumping into a challenge with Balotelli.
Balotelli made his mark in some style 10 minutes from time when he was brought down in the box by Felipe to give Milan hope.
The Italian brushed himself down to calmly slot home the resulting spot-kick and the comeback was on.
Then, with just two minutes to go, Mexes found himself on the end of a Montolivo cross to slot home the dramatic winner.
|88||C. Terlizzi||45' 70'|
|14||F. Della Rocca|
|Coach: G. Iachini|
for A. Rosina 61'
for I. Emeghara 75'
for M. Rubin 89'
|MLS Review: Galaxy, Toronto into semis|
|Beister: Victory move surprised people|
|Bilic: Cup run will help in Premier League|
|Pjaca out for up to three weeks|
|Trophies still the focus for Guardiola|
|Mignolet wants ´fair´ Karius battle|
|Ancelotti impressed by motivated Bayern|
|West Ham ´unreservedly condemn´ crowd trouble|
|Allegri praises strike duo after win over Sampdoria|
|De Boer praises two-goal Icardi after vital win|
|Chelsea were ´unlucky´ with missed chances, insists Conte|
|Mourinho: I´ve never had fans like these|
|Nacho´s goal better than my Champions League final volley - Zidane|
|Borussia Dortmund 1 Union Berlin 1 (aet, 3-0 pens): Weidenfeller shootout heroics seal progress|
|Bilic: Crowd trouble distracts from great West Ham win|
|Kompany told me he couldn´t play anymore - Guardiola|
|Liverpool and Manchester United handed home quarter-finals|
|Inter 2 Torino 1: Icardi double alleviates pressure on De Boer|
|Manchester United 1 Manchester City 0: Mata extends Guardiola´s winless run|
|West Ham 2 Chelsea 1: Crowd trouble tarnishes Hammers´ route to quarter-finals|
|Cultural Leonesa 1 Real Madrid 7: Morata and Asensio star in BBC´s absence|
|Bayern Munich 3 Augsburg 1: Green´s first goal sends holders through|
|Juventus 4 Sampdoria 1: Rapid start sets champions on their way|
|Crafty Suarez is world´s best striker - Godin|
|Mancini: Balotelli has wasted years but can bounce back|
|Rami rejected ´risky´ PSG move|
|Neymar would have cost PSG €430m, claims father|
|Sacchi warns Bayern players over Ancelotti temper|
|Valencia ´pleased´ with RFEF bottle ruling|
|Mourinho apologises to Utd fans for Chelsea thrashing|
|Barcelona lash out at ´totally reprehensible´ RFEF comments|
|Jacob leaves Marseille amid rumours of Zubizarreta appointment|
|Lavezzi added to Argentina squad as Dybala drops out|
|Del Bosque: Mourinho had a point on Conte|
|N´Zonzi in talks over Sevilla extension|
|Allardyce successor ´will not be a mercenary´ - Glenn|
|Aubameyang like a rocket, Lewandowski perfect - Riedle|
|RFEF fines Valencia, warns Barca over bottle incident|
|Wenger tells Iwobi to improve his finishing|
|Barcelona without Mathieu for three weeks|
|Kimmich draws inspiration from Xavi|
|Vazquez signs new Madrid deal|
|Higuain the best striker in the world - Nedved|
|Wolfsburg regret De Bruyne, Perisic sales|
|Parejo slams Neymar for ´inciting´ Valencia fans|
|Gundogan predicts ´very lively´ Manchester derby|
|Luis Enrique satisfied with Supercopa workout|
|Messi could join Newell´s after World Cup - Maxi Rodriguez|
|Ibrahimovic wants United to be the boss of City|
|Schmidt on the bus as Lotte book ticket for next round|
|Pogba still adapting to Premier League, says Mourinho|
|Southgate hails influence of demoted Rooney|
|Lille ready to heap more pressure on PSG as Corchia dreams big|
|I´m among top 20 LaLiga coaches, jokes Luis Enrique|
|Brattan earns Socceroos call-up|
|Pochettino pleased with Janssen|
|Klopp never questioned Sturridge quality|
|Barcelona downed by Espanyol in Supercopa|
|Heavy Milan defeat ´just a bump in the road´ - Montella|
|Pochettino wanted Liverpool debutant sent off|
|Klopp happy to entertain as Liverpool youngsters earn their spurs|
|Leverkusen dumped out by 10-man minnows|
|Wenger praises Oxlade-Chamberlain work ethic|
|Wenger praises Oxlade-Chamberlain work ethic|
|Tuchel unaffected by Real Madrid rumours|
|I would like to pick Toure, believe me - Guardiola|
|Genoa 3 AC Milan 0: Unbeaten run comes crashing to an end as Paletta sees red|
|Liverpool 2 Tottenham 1: Sturridge at the double to book quarter-final spot|
|Arsenal 2 Reading 0: Oxlade-Chamberlain brace secures safe passage|
|Football world mourns Carlos Alberto|
|81 per cent win ratio and more goals than Bayern Munich - Two years of Messi, Suarez and Neymar|
|Ridgewell reportedly arrested for drink driving|
|Verratti not leaving PSG - agent|
|Costa competition benefitting Batshuayi, says Conte|
|Pele hails ´friend and brother´ Carlos Alberto|
|Bailly confirms two-month lay-off|
|How Carlos Alberto established his legacy as one of the greats|
|Allegri hints at Marchisio return|
|Lewandowski has not renewed with Bayern - agent|
|Carlos Alberto: Capita´s World Cup triumph in numbers|
|Hull´s Snodgrass out for a month|
|Keita reveals Arsenal, Manchester City, Liverpool snub|
|Mikel not giving up on Chelsea career|
|Former Brazil captain Carlos Alberto dies|
|Guardiola wants to help ´special player´ Aguero|
|Roma welcome back Strootman, Rudiger for Sassuolo clash|
|Wolves confirm Zenga dismissal|
|Bruce lauds Rooney as a world ´great´|
|Raiola made €27m on Pogba move, reveals Juventus director|
|Dortmund injury woes worsen with Aubameyang|
|De Bruyne out of Manchester derby|
|Conte: I always show respect to opponents|
|FIFA fines RFEF over Madrid, Atletico breaches|
|Pedro backs Conte amid Mourinho spat|
|Big clubs would fight for Edwards if he was Brazilian - Pochettino|
|They boo Ronaldo, they booed me as well - Zidane|
|De Boer fed up of sacking talk|
|Neuer: Bayern have no room for error|
|Bilic praises Conte´s ´aggressive´ demeanour|
|Di Maria will bounce back - Motta|
|EFL opens investigation into Watford over ´forged´ bank letter|
|Hummels admits RB Leipzig a serious threat for Bayern|
|Pedro reveals Barcelona talks|
|De Bruyne: I have no problem with Mourinho|
|Casillas: I have not retired from Spain duty|
|Raul backs under-fire Ronaldo for Ballon d´Or glory|
|Mourinho and United must lower expectations - Xavi|
|Hands off! Milan CEO insists Donnarumma will stay|
|Glory coach Lowe accepts ban|
|Scolari extends contract with Guangzhou Evergrande|
|Guardiola eliminated City doubts - De Bruyne|
|Klopp lauds Ings for ´perfect´ response|
|Wenger: Perez needs to take chance|
|Boys to men: Mourinho challenges United players|
|Kompany committed to bargain with City medics|
|´Insipid´ Hazard overlooked for Ballon d´Or|