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.
|Semedo, Deulofeu left out of Barcelona trip to Girona|
|Conte urges Morata to show Costa aggression|
|Guardiola hopes Aguero breaks City record at home|
|Lille 0 Monaco 4: Falcao hits double as champions romp to win|
|Bayern Munich 2 Wolfsburg 2: Ulreich howler sparks shock comeback|
|De Biasi takes charge of Deportivo Alaves|
|Srna vows to clear ´name and reputation´ following doping claims|
|Neymar to miss PSG´s Montpellier clash|
|Costa can win many Atletico trophies, says ex-Chelsea striker Shevchenko|
|From Maradona to Messi – Barcelona celebrate 60 years at Camp Nou|
|Shakespeare remaining upbeat over Silva saga|
|Alex Sandro replaces Marcelo in Brazil squad|
|Returning Costa scared of Atletico fitness plans|
|Benevento captain Lucioni fails doping test|
|Stoke could have one fit centre-back for Chelsea game - Hughes|
|Valverde dismisses Real Madrid ´crisis´ talk|
|Bakayoko fit after car accident and Hazard ready to start, says Chelsea boss Conte|
|Rummenigge calls for transfer window to close on July 31 across Europe|
|Nigel Pearson appointed by Belgian side OH Leuven|
|UEFA inspector to examine disrupted clash between Arsenal and Cologne|
|Mourinho misses out as Allegri, Conte and Zidane battle for Best FIFA Coach of the Year|
|Conte encouraged by Musonda and Kenedy progress|
|Costa lands in Madrid ahead of Atletico return|
|Guardiola endorses Mourinho´s EFL Cup scepticism|
|Messi, Neymar and Ronaldo headline FIFA Best shortlist|
|Conte thanks Costa after Chelsea exit agreed|
|Zidane will not ´go crazy´ despite Real Madrid slump|
|Aubameyang is very happy here, Bosz assures Dortmund fans|
|Madrid confirm Marcelo hamstring tear|
|I hope he doesn´t score! - Zizou wary of Enzo threat|
|Major players help teams grow - Simeone happy with selection headaches after Costa move|
|Allegri has faith in misfiring Higuain ahead of Turin derby|
|PSG must prove big-club credentials after spending spree - Draxler|
|Not preventing Neymar´s Barca departure a ´bad decision´ - Rakitic|
|Shanghai Shenhua slam ´misleading´ French media over Tevez interview|
|There´s no bitterness – Costa ´cool´ with Conte as Atleti return nears|
|Copa Libertadores Review: River put eight past Wilstermann, Lanus through|
|Ronaldo: I´ll get fit if Real Madrid need me|
|Man United and City have put pressure on Liverpool – Klopp|
|Aubameyang: China talks were a disaster|
|Dembele returns to Barcelona after hamstring surgery|
|EFL set to follow Premier League in transfer window change|
|Howedes a doubt for Juve derby clash|
|It will go well for Dembele at Barca - Aubameyang|
|Abraham denies talk of switch to Nigeria|
|Defensive worries for bullish Klopp as Liverpool eye Leicester revenge|
|Aubameyang: I no longer dream of Real Madrid|
|52 passes, 11 players, one goal, no West Brom touches - Manchester City´s Guardiola masterclass exam|
|Gundogan set for swift Manchester City return|
|Costa´s Atletico return: Griezmann primed to shine alongside Atleti´s prodigal son|
|Time to move on from controversial chant, says Lukaku|
|Costa´s Atletico return: Torres, Aguero, Falcao and Griezmann and the Rojiblancos´ history of fine f|
|Costa´s Atletico return: Bonucci v Allegri, Beckham v Ferguson and more famous player-manager bust-u|
|Kane will stay a long time, regardless of winning trophies - Pochettino|
|I´ll decide who is first choice - Emery putting foot down over Cavani-Neymar penalty spat|
|Costa´s Atletico return: Henry, Tevez, Rooney and other players who went back|
|No celebrations for Barry unless West Brom take something from Arsenal|
|Benzema wants to retire at Real Madrid|
|Atletico Madrid agree Costa deal with Chelsea|
|Only Messi´s dad has signed the contract - Benedito disputes Bartomeu claim|
|Klopp backs Oxlade-Chamberlain and Liverpool to bounce back|
|China won´t compete even in 50 years - Tevez blasts level of Chinese football|
|Record revenues over £580m for Manchester United|
|Ancelotti defends Bayern fitness coach after Neuer injury|
|Burnley sign Lindegaard following Heaton injury|
|Injured Liverpool star Lallana steps up training|
|Juventus can´t stop Dybala leaving, admits Marotta|
|Mertens shrugs off Maradona comparisons after Napoli wondergoal|
|Ramos alarmed by Real Madrid´s ´f****** bad start´ in LaLiga|
|Wenger denies punishing Sanchez with lack of playing time|
|Athletic´s Yeray overcomes cancer for a second time|
|Wenger wanted Barry at Arsenal before Manchester City move|
|Mourinho: Scrapping EFL Cup could help English clubs in Europe|
|Neymar left Barcelona because of Messi – Mathieu|
|Dembele drops hint of early Barcelona return|
|Copa Libertadores Review: Nine-man Barcelona reach semis, Gremio also advance|
|Neville: Rashford as good as Mbappe and Dembele|
|MLS Review: Montreal win derby, Atlanta put four past Galaxy|
|Madrid can overturn deficit as captain Ramos remains calm|
|Neymar wouldn´t have treated Messi like he did Cavani – Forlan|
|Zidane not worried after Madrid lose ground on Barca|
|Casemiro calls for Madrid calm after shock Betis loss|
|Sane sends message to Guardiola as Manchester City shake off West Brom|
|Keep calm and carry on – Allegri backs Higuain to rediscover scoring touch|
|Bosz proud of table-topping Dortmund after Hamburg triumph|
|Montella points to schedule after uninspired Milan win|
|Conte confirms Luiz will be fit to face Atletico|
|Manchester City boss Guardiola hopeful Gundogan injury not serious|
|Real Madrid 0 Real Betis 1: Ronaldo´s return ruined as Sanabria stuns LaLiga champions|
|Wilshere is ready for the league - Wenger|