Mario Balotelli's stunning long-range effort lit up a lacklustre Milan performance in a 1-0 home victory over Serie A strugglers Bologna.
Clarence Seedorf's charges had struggled to create clear-cut chances against a stubborn Bologna defence on Friday, but a moment of magic worthy of winning any game from Balotelli four minutes from time snatched all three points.
The Italy international collected the ball and found the top corner with a superb strike from fully 35 yards, leaving visiting keeper Gianluca Curci with no chance.
Milan dominated possession in the first half but just could not create any clear-cut chances, and they needed Christian Abbiati to prevent Rene Krhin's goalbound header to keep the scores level at the interval.
Bologna twice came close to breaking the deadlock with Jonathan Cristaldo's half-volley going narrowly wide before Abbiati's fine stop denied Lazaros Christodoulopoulos.
But it was Balotelli who delighted the home crowd after a below-par Milan performance, with his 10th league goal of season enough to lift them to ninth in the table, while 16th-placed Bologna remain four points above the drop zone.
The hosts looked to dictate the tempo in the early stages and fashioned the first chance in the fourth minute when captain Riccardo Montolivo's effort stung the palms of Curci.
Montolivo was involved again 10 minutes later with a sweetly struck half-volley from 25 yards that Curci could only parry into the path of Balotelli, who could only scuff the rebound into the ground.
Milan were struggling to turn possession into clear-cut chances, and were almost caught cold when Andrea Mantovani's teasing cross from the left was met by the head of Rene Krhin, with the former Inter midfielder forcing a fine diving stop from Abbiati.
Having survived that scare, Milan had an opportunity just after the half-hour mark when Curci spilled Balotelli's weak free-kick from the left touchline.
Cristian Zaccardo - who came in for Cristian Zapata, who got injured in the warm up - reacted quickest, but his effort was blocked with the defender adjudged offside anyway.
There was a delay to the second half as referee Mauro Bergonzi needed treatment on a cut lip sustained when the ball struck him in the face in the opening period.
When play resumed, Milan continued to see the majority of the ball without showing any cutting edge in the final third.
And their inability to force opportunities twice nearly cost them dear just after the hour mark.
First Cristaldo stretched to meet Gyorgy Garics' cross from deep on the half-volley and guided his shot just wide of the post, before Christodoulopoulos' shot on the turn from the edge of the box looked destined for the top corner before Abbiati flung himself to the left to keep the scores level.
But just when it looked like Milan would remain frustrated, Balotelli unleashed an unstoppable strike from the right to claim an unlikely win.
|I´m glad Rochdale haven´t made the news - Hughes|
|Getafe 2 Celta Vigo 1: Hosts come from behind for first win in 10|
|Real hit back at media reports over transfer dealings|
|Rochdale 1 Stoke City 4: Joy and angst for Bojan as Premier League side progress|
|Turkish Super Lig Review: Kuyt at the double in Fenerbahce win, Besiktas back on track|
|Senegal v Algeria: Morale is high, insists Gourcuff|
|Cassano leaves beleaguered Parma|
|Copa del Rey Preview: Atleti look to overturn Barca advantage, Espanyol wary|
|Atletico Madrid v Barcelona: Griezmann targets second-leg fightback|
|Sheffield United v Tottenham: Clough expects fired-up Spurs for second leg|
|Cape Verde 0 Zambia 0: Stalemate sends both sides out|
|Democratic Republic of Congo 1 Tunisia 1: Both teams qualify for quarter-finals|
|FA Cup fifth round: Middlesbrough handed Arsenal test|
|South Africa v Ghana: Must-win game for Mashaba´s men|
|Parma v Juventus: Serie A leaders strong favourites to reach semi-finals|
|Van Praag planning to stand for FIFA presidency|
|Inter snap up Brozovic|
|Van Persie unsure of long-term United future|
|Broken metatarsal rules El Shaarawy out for at least six weeks|
|FIFA: No disciplinary proceedings against Real|
|No Plan B if Guardiola goes - Rummenigge|
|Millwall take Hooiveld on loan|
|Chile v United States: Klinsmann has high hopes for young stars|
|Carver to lead Newcastle until end of season|
|Shenaishil taking positives from last-four exit|
|Neymar happy with life at Barca and Messi relationship|
|Lucas Silva ready for life at Real|
|Milan ´always with Inzaghi´ - Menez|
|Rodriguez living the dream at Real|
|Stielike expecting Australia in final|
|Mourinho not dwelling on Bradford defeat|
|Schweinsteiger under no pressure to extend Bayern contract|
|Herd heads to Wigan on loan|
|Inter defensive duo suffer hamstring tears|
|UAE coach Ali eyes Asian Cup final|
|Gattuso dreaming of managing Rangers|
|Fiorentina agree return of Gilardino on loan|
|Sakho hits back at critics|
|South Korea 2 Iraq 0: Kim books sixth Asian Cup final place|
|Sturridge could return against Chelsea|
|Zinnbauer backs Drobny as Hamburg first choice|
|Drogba targeting Chelsea stay|
|Postecoglou confident Australia squad can progress|
|UEFA does not have the courage to run against me - Blatter|
|Foster: Anichebe unplayable|
|Australia v UAE: Japan´s absence a boon for Asian Cup hosts|
|Milan v Lazio: Injury-hit visitors aiming for back-to-back wins|
|Trezeguet confirms retirement|
|No ´major problems´ with Nicolas Frey´s head wound|
|Strootman injury not "serious" - Garcia|
|No Paraguay, USA for retiring Riquelme|
|Saint-Etienne did not try to play football - Blanc|
|Primeira Liga Review: Sporting move within one point of Porto|
|La Liga Review: Parejo downs Sevilla, Resino starts with a point|
|Serie A Review: Juve go seven points clear as Roma draw again|
|Ligue 1 Review: Paris Saint-Germain and Lyon make Marseille pay for slip-up|
|Burkina Faso coach puts AFCON exit down to bad luck|
|Saint-Etienne 0 Paris Saint-Germain 1: Ibrahimovic scores in repeat performance|
|Shenaishil optimistic despite Kasim absence|
|Walcott: Goal has been a long time coming|
|DR Congo v Tunisia: Leekens warns against complacency|
|Congo 2 Burkina Faso 1: Thievy helps send 2013 runners-up crashing out|
|Gabon 0 Equatorial Guinea 2: Balboa and Iban put hosts through|
|McCarthy and Distin on road to recovery|
|Gil has hit the ground running - Lambert|
|Eredivisie Review: Ajax and Feyenoord lose ground after dour draw, Eagles secure big win|
|Wenger confirms Gabriel move is imminent|
|Eto´o presented to Sampdoria fans|
|Cape Verde v Zambia: Victory a must for 2012 winners to avoid elimination|
|Brighton and Hove Albion 2 Arsenal 3: Walcott and Ozil among the goals for holders|
|Mancini upbeat despite ´cruel´ late defeat|
|Pogba revelling in rich vein of form|
|Aston Villa 2 Bournemouth 1: Gil helps under-fire Lambert breathe easy|
|Defour dismissed after Standard Liege banner taunt|
|Allardyce relieved with scrappy West Ham win|
|Sturridge ´happy man´ after return to Liverpool training|
|Inter 0 Torino 1: Moretti ends unbeaten run for top-four hopefuls|
|Juventus 2 Chievo 0: Pogba inspires victory as leaders march on|
|Bristol City 0 West Ham 1: Super sub Sakho sinks City|
|Hughes in talks over new Stoke deal|
|Delph signs new contract|
|Chelsea v Liverpool: Mourinho demands League Cup response|
|Football League Preview: Derby eye top two, Cambridge back to reality|
|Nani not giving up on Old Trafford career|
|Perth Glory 3 Melbourne Victory 3: Leaders stage two-goal late comeback|
|Neymar: Barca have no interest in Real results|
|Milan defender Mexes apologises for red card|
|South Korea v Iraq: Strange lead-up for Shenaishil´s men|
|Lazio´s Djordjevic thanks well-wishers ahead of ankle surgery|
|Iran´s Asian Cup appeal dismissed by AFC|
|Cech urges Chelsea to clean up FA Cup exit ´mess´|
|Henderson: Liverpool are up for the cup|
|Edimar wants ´normal´ ban for Real star Ronaldo|
|Pellegrini defends misfiring City strikers|
|Australia ready for UAE - Sainsbury|
|Blanc takes positives from past|
|Inzaghi promises ´something different´ at Milan|
|Mexes sorry for seeing red|
|La Liga Review: Wins for top three|
|Vitoria Guimaraes 2 Gil Vicente 2: Last-gasp penalty salvages point for hosts|