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'
|Klopp plays down Club World Cup|
|Schalke coach Keller not fearing the sack|
|Wilshere loses appeal against two-match ban|
|Zaha on Pardew´s radar|
|Milan will be my final club, says Abbiati|
|Premier League Preview: West Brom v Hull City|
|Anigo to remain at Marseille helm for time being|
|No Bankia involvement in Bale deal, says Perez|
|Galliani wants stronger Milan youth system|
|Rafinha extends Bayern contract|
|Premier League Preview: Stoke City v Aston Villa|
|Poyet: No excuse not to perform|
|Vanishing spray to be used at World Cup|
|Gabbidon praises Palace strike pair|
|Premier League Preview: Manchester United v West Ham|
|Hughton calls for Norwich City to show character|
|Premier League Preview: Fulham v Manchester City|
|Samaras attracting Lazio interest|
|Premier League Preview: Liverpool v Cardiff City|
|Rodgers backs Mackay at Cardiff|
|Foster back fit and raring for West Brom recall|
|De Boer agent denies Tottenham contact|
|Premier League Preview: Crystal Palace v Newcastle United|
|Hungary appoint Pinter as new coach|
|Iniesta signs new Barca contract|
|Rodgers coy over Suarez talks|
|Jagielka hopes for fresh faces at Everton to help top-four push|
|A-League: Central Coast 1 Wellington 0|
|Spain end top of FIFA rankings for sixth year running|
|Allardyce disappointed to draw Manchester City|
|Pascoe hails ´unbelievable´ Suarez|
|Vorm knee surgery brought forward|
|Blanc hails Cavani brace|
|Michu wants Aspas to join Swansea City|
|Hoeness plays down Bayern treble suggestions|
|Dzeko confident he can fill Aguero void|
|Moyes: No loan offers for Zaha|
|Kiessling calls for Leverkusen response|
|Matuidi: Cavani on par with Ibrahimovic|
|Yeboah set to join Borussia Monchengladbach|
|Rooney a ´chance´ to face West Ham|
|FIFA Club World Cup Preview: Bayern Munich v Raja Casablanca|
|Benzarti praises ´extremely talented´ Raja Casablanca|
|Ranieri unsure over Falcao return|
|Coupe de La Ligue Wrap: Cavani leads PSG to dramatic win|
|Copa del Rey Wrap: Real Madrid through as Sevilla crash out|
|Tottenham job appeals to Sherwood|
|Sherwood gutted after defeat|
|Hughes: United worthy winners|
|Moyes pleased to see United weather storm|
|Allardyce hails West Ham fight|
|Coppa Italia: Juventus 3 Avellino 0|
|Manchester clubs kept apart in League Cup semi draw|
|League Cup: Tottenham 1 West Ham 2|
|League Cup: Stoke City 0 Manchester United 2|
|FIFA Club World Cup: Raja Casablanca 3 Atletico Mineiro 1|
|Sheffield Wednesday, Wigan abandoned due to heavy rain|
|United face anxious Rooney wait over injury|
|Messi making good progress|
|Ramos ban overturned|
|Osvaldo charged by FA|
|In-demand Ince offered new Blackpool deal|
|Molde confirm Solskjaer approaches|
|Kramer keen to continue home record|
|Rodgers: Henderson has potential to get even better|
|Ruiz on Anderlecht´s radar|
|Swansea, Hull fined by FA over player behaviour|
|Leeds keen on re-signing Gradel|
|Leverkusen announce Ryu deal|
|Ribery named Bundesliga Player of the Year|
|Moyes: No Zaha interest|
|Barcelona, Real Madrid in European Commission investigation|
|Basel: No Tottenham approach for Yakin|
|Chelsea set for Guarin bid, agent claims|
|Lewandowski has Dortmund goal concerns|
|Pogba, Pirlo will not sign before Christmas, says Marotta|
|Guardiola convinced to join Bayern after ´meat´ and greet|
|Martinez: Everton seen as a ´perfect´ loan destination|
|Anderlecht ´perfect´ for Defour, says Van Holsbeeck|
|Watford appoint Sannino|
|Sakho feels ´lucky´ to play with Suarez|
|Lippi: Too many teams competing in Club World Cup|
|Moyes ´told Welbeck to learn from Rooney´|
|I would kill myself over match-fixing, says Gattuso|
|Hughes dismisses calls for Januzaj protection|
|Aguero ´could miss up to two months´|
|Guardiola lauds Ballon d´Or nominee Ribery|
|Liverpool open Suarez contract talks|
|Copa del Rey Wrap: Barcelona, Levante cruise through|
|A-League Preview: Derby date beckons for winless Heart|
|Pearson upbeat despite Leicester defeat|
|Poyet urges Sunderland to build on Chelsea win|
|Mourinho rues missed chances|
|Pellegrini proud of professional Manchester City|
|Bayern on another level, says Beckenbauer|
|League Cup: Sunderland 2 Chelsea 1 (aet)|
|League Cup: Leicester City 1 Manchester City 3|
|FIFA Club World Cup: Guangzhou Evergrande 0 Bayern Munich 3|
|Zenit and Olympiacos punished with partial stadium closures|
|Sherwood wants positive reaction|
|Ancelotti expected La Liga title fight|
|Moffat charged over betting allegations|
|Wilson appointed at Barnsley|
|Wilshere charged by FA|
|Gattuso determined to clear his name|
|Moyes slams sacking culture|
|Mackay refuses to resign despite owner criticism|
|Redknapp reluctant to take Taarabt back|
|Amat pleased with development|
|Hughes optimistic of League Cup progression|
|Perez: No bids for Di Maria|
|FIFPro demand transfer system overhaul|
|Edwards sacked by Perth Glory|
|Allardyce not fearing the sack|
|Howson commits to Norwich|
|Tevez resigned to Argentina snub|
|SFA uphold Butcher´s one-match ban|
|Zapata rules out United switch|
|European Ombudsman calls for action on Spanish tax complaint|
|Albrighton eyes new Villa deal|
|Bale to miss Copa del Rey clash with ´small injury´|
|Pardew will bide his time in January|
|Kreuzer confident of Hamburg improvement|
|Van der Sar: Moyes can turn United around|
|Maradona backs Ronaldo for Ballon d´Or|
|Tottenham warned off Klinsmann|
|Costa Rica Primera Division: Alajuelense 0 Herediano 0|
|Lyon wary of Chornomorets Odesa|
|Guardiola talks up Lippi, Evergrande|
|Chile Primera Division Wrap: Chile, Deportes Iquique reach final|
|Garcia laments defensive mistakes|
|La Liga: Real Valladolid 3 Celta Vigo 0|