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'
|New deals for Moore, Schlupp|
|Litex Lovech 3 Veris 0 (3-0 agg): Bulgarians through to second round|
|Valencia loan Fede to Cordoba|
|Stoke closing in on Bojan|
|Inter still hopeful of Jovetic capture|
|Finalists dominate Golden Ball nominees|
|Celtic end Austria tour unbeaten|
|Rizzoli appointed World Cup final referee|
|Oier joins Granada|
|Escriba extends Elche agreement|
|Newcastle have agreement for Cabella, says Nicollin|
|Scolari: We have to move on|
|Roma complete Emanuelson deal|
|Alex pledges to improve Milan|
|Di Maria doing everything he can, says agent|
|Villa give Richardson a Premier League return|
|Sabella ´to step down´ after World Cup final|
|Van Gaal eyes ´unbeaten´ campaign|
|Suarez to take case to CAS|
|Germany have same spirit as in 1990, says Beckenbauer|
|´Quite clear Suarez wanted to leave´ - Liverpool fanzine|
|Southampton closing in on Pelle deal - Koeman|
|Suarez, Ronaldo, Bale and more: The Premier League talent drain|
|Augsburg capture Caiuby|
|Gerrard lauds departing Suarez|
|Andrade delighted at Benfica return|
|No Bony talks with Liverpool - Swansea|
|Lahm: Experience will be key|
|FIFA World Cup Preview: Brazil v Netherlands|
|Suarez departs Liverpool with ´heavy heart´|
|Liverpool did everything to keep Suarez - Rodgers|
|Suarez to sign for Barca|
|Boyce: Referees not told to be lenient|
|Sanchez reveals Wenger admiration|
|Flick staying secretive on Messi plans|
|Determined Dyche aims to complete more deals|
|Matri joins Genoa on loan|
|Valderrama talks up James potential|
|Aguero: Argentina are World Cup underdogs|
|Everton in talks over Traore return|
|Lambert tipped to prise open defences|
|Thauvin hails Bielsa impact at Marseille|
|Zico: Time for Scolari to go|
|Klopp eager for defensive improvement|
|Arsenal to run the rule over Fathi|
|Chamakh signs news Palace deal|
|Neville set to learn United fate|
|Fiorentina swoop for Brillante|
|Navas set to join Bayern|
|Neymar rejects agent´s anti-Scolari Twitter tirade|
|Allegri undecided on Italy job|
|Fernando idolises City team-mate Toure|
|Arteta: FA Cup will inspire Arsenal´s Premier League tilt|
|Evergrande confirm Gilardino signing|
|Howedes calls for team effort to stop Messi|
|Kuyt: Van Gaal can succeed at United|
|Argentina fined for player no-show|
|Neymar: ´I could be in a wheelchair´|
|Mascherano: I tackled doubts to block Robben|
|Zaccheroni: I leave Japan in a good spot|
|Aguero: Argentina ready to give everything|
|UEFA Europa League Review: Gothenburg leave it late, Sillamae stun Honka|
|Klose lauds Ronaldo after scooping record|
|Iran refute Susic claims|
|Fernandez named Deportivo boss|
|Argentina have no chance, says Robben|
|Hierro to replace Zidane as Real first-team coach|
|Rhodes signs new Rovers deal|
|Arsenal complete Sanchez swoop|
|Inzaghi backs under-fire Balotelli|
|Defeat has overshadowed display - Vlaar|
|Maradona: Germany full of themselves|
|Barry hoping for England recall|
|Green extends QPR stay|
|Shanghai Shenhua 1 Guangzhou Evergrande 2: Rong leaves it late in dramatic win|
|Germany hope for Brazilian support|
|Torino striker Cerci in demand|
|FIFA critcised following Mascherano incident|
|Bernat happy at Bayern despite bad memories|
|Giggs backs Van Gaal to thrive at Old Trafford|
|Tadic can fill Lallana void - Koeman|
|New five-year deal for Nasri|
|Barcelona release injury-hit Cuenca|
|Suarez appeal rejected|
|La Decima a reflection of Di Stefano - Perez|
|Buoyant Mazzarri eager for Inter success|
|Mandzukic joins Atletico|
|Van Gaal criticises third-place play-off|
|Halilhodzic yet to decide future|
|Mandzukic eager for Simeone link-up|
|Davies hoping for Hull deal|
|Poyet hopeful over Altidore fitness|
|Diego close to ´dream´ Fenerbahce move|
|Inter loan out youngsters|
|Fired-up Cole can inspire Villa, claims Lambert|
|Hughes hailed for winning over Brit doubters|
|Hajrovic signs for Bremen|
|Hull can buck Europa League trend, says Meyler|
|Mertesacker talks up German chances|
|Swansea reveal Tottenham contact over Davies, Sigurdsson|
|Lloris pens five-year deal at Tottenham|
|Fernandinho: ´The pain is big´|
|MLS Preview: Portland aim for swift revenge against Seattle|
|Sabella: Germany have an advantage|
|Second Argentine journalist dies in Brazil|
|Aguero: Argentina defied critics|
|Impressive Mascherano thrilled with final´s berth|
|Zuniga offered protection by Colombia|
|Germany vowed not to ´humiliate´ Brazil|
|Hong resigns from South Korea post|
|Third-choice Vlaar ´wasn´t nervous´|
|Van Gaal: I wanted Krul in the shootout|
|Argentina: Key factors in reaching the final|
|Sabella revels in semi-final win|
|Proud Robben feels pain of World Cup exit|
|FIFA World Cup: Netherlands 0 Argentina 0 (after extra time, 2-4 on penalties)|
|Susic signs two-year extension with Bosnia-Herzegovina|