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.
|Luis Enrique salutes ´special´ Messi|
|Iachini laments missed chances|
|La Liga Review: Barca hammer Levante, Villarreal in two-goal comeback|
|Serie A Review: Zeman denied Roma revenge, Inter held|
|Paris Saint-Germain 1 Lyon 1: Umtiti adds to pressure on Blanc|
|Levante 0 Barcelona 5: Five-star Barca crush 10-man hosts|
|Palermo 1 Inter 1: Visitors´ progress checked|
|Arsenal v Southampton: Koeman calls for focus|
|Swansea City v Everton: Both sides looking to bounce back in League Cup|
|Police to investigate after Balotelli abused on Twitter|
|Liverpool v Middlesbrough: Rodgers keen to regain winning habit|
|Arabian Gulf League Review: Al Wahda maintain perfect start, Al Jazira held|
|Real Madrid v Elche: Hosts look to build on Depor demolition|
|Eredivisie Review: Ajax triumph in derby, PSV romp to victory|
|Warnock proud after victory at Goodison|
|Mourinho not interested in Pellegrini jibes|
|Pellegrini slams ´small team´ Chelsea´s approach|
|Bundesliga Review: Leverkusen slip up, Cologne held in derby|
|Martinez rues failure to build on strong start|
|Sewe Sport 1 AC Leopards 0: Kouame strike seals slender advantage|
|Scottish Premiership Review: Derby joy for Dundee United, Celtic held|
|Vita Club 2 CS Sfaxien 1: Hosts seize advantage in semi-final|
|Mixed emotions for Lampard after denying Chelsea|
|Irvine hails best day so far|
|Manchester City 1 Chelsea 1: Lampard denies former club|
|Everton 2 Crystal Palace 3: Howard mistakes cost hosts dear|
|Pearson praises Leicester City spirit|
|Van Gaal laments United collapse|
|Pochettino makes no excuses|
|CSL Review: Evergrande leave it late, Liaoning Whowin edge thriller|
|Leicester City 5 Manchester United 3: Hosts stage famous comeback|
|Tottenham 0 West Brom 1: Morrison gives visitors deserved win|
|Lee claims first Hong Kong gold in Incheon|
|Sunderland v Stoke City: Poyet again up for the cup|
|Ancelotti wants Real consistency|
|Dortmund hit by Mkhitaryan injury blow|
|Inzaghi pleased with Milan progress|
|Monk: Hodgson will be back|
|Pardew: Cisse should not have played|
|We cannot entertain title challenge - Rodgers|
|Bayern Munich v Paderborn: Visitors´ surprise start faces litmus test|
|K. League Review: Suwon close gap on top two|
|Empoli v Milan: Inzaghi eyeing top three|
|MLS Review: Wright-Phillips treble inspires Red Bulls rout|
|Bender: We lacked ambition|
|McInnes unhappy after ugly bust-up|
|Cambiasso impressed with Leicester mentality|
|Valverde: Champions League is not an excuse|
|Simeone wants improvement in discipline|
|Conte keeping tabs on Pelle|
|Marseille deserved to beat Rennes - Bielsa|
|La Liga Review: Real end slump with rout, Atletico share spoils|
|Hart unsure on City future|
|Primeira Liga Review: Quinta inspires first Penafiel win, Braga claim late draw|
|ES Setif 2 TP Mazembe 1: Late winner gives Algerians the edge|
|Inzaghi upbeat despite defeat|
|Victory not ´revenge´ for Allegri|
|Simeone defends Jimenez|
|Ligue 1 Review: Gignac double takes Marseille top|
|Patience pays off for Tevez and Juventus|
|Eredivisie Review: Vitesse drop points again, Dordrecht salvage late draw|
|Serie A Review: Allegri wins on Milan return, Empoli fight back|
|Milan 0 Juventus 1: Allegri wins on return to San Siro|
|Klopp rues Dortmund display|
|Allardyce lauds ´outstanding´ first-half performance|
|Coton Sport 0 Al Ahly 1: Soliman screamer puts Egyptians in command|
|Newcastle earned friends with comeback draw, claims Pardew|
|Liverpool ´nowhere near the standard´ - Rodgers|
|Atletico Madrid 2 Celta Vigo 2: Nolito penalty frustrates champions|
|Bundesliga Review: Zinnbauer stops Bayern as Paderborn go top|
|Lambert to close training ground after bug|
|Poyet blasts lacklustre Sunderland|
|Goals and wins are coming - Dyche|
|Koeman calm after Southampton move second|
|Bruce bemoans Hull errors|
|West Ham 3 Liverpool 1: Hosts punish sloppy Reds|
|Mainz 2 Borussia Dortmund 0: Klopp suffers miserable return|
|Guardiola: Fixture congestion taking its toll|
|Deportivo thrashing answered critics - Ancelotti|
|League Two Review: Accrington thrill on Coleman return, Bury go top|
|Bony ´distraught´ after dismissal - Monk|
|Pardew praises senior players after Hull draw|
|Wenger: Ozil showed mental strength|
|League One Review: MK Dons hit Crewe for six, Swindon crush Sheffield United|
|Championship Review: Fulham woes continue under Symons|
|Scottish Premiership Wrap: Inverness overhaul Hamilton at the top|
|Hughes credits QPR fans|
|Aston Villa 0 Arsenal 3: Ozil shines as Gunners get back on track|
|Swansea City 0 Southampton 1: Wanyama leaves it late to down 10-man hosts|
|Deportivo La Coruna 2 Real Madrid 8: Ronaldo hat-trick helps end visitors´ Liga slump|
|Newcastle United 2 Hull City 2: Late Cisse brace lifts pressure on Pardew|
|Burnley 0 Sunderland 0: Both sides await first league win|
|Hamburg 0 Bayern Munich 0: Zinnbauer starts Hamburg reign with impressive point|
|Hosts strike gold on day two in Incheon|
|Redknapp hails Kranjcar quality|
|QPR 2 Stoke City 2: Kranjcar spoils Hughes´ Loftus Road return|
|Howard not expecting European hangover|
|J.League Review: Gamba clinch Osaka derby, Tokushima Vortis on the brink|
|Vermaelen ´getting better every day´|
|Rafael: I want to stay at United forever|
|Ulloa determined to maintain strong form|
|Vidic adjusting to Serie A referees|
|Conte: There is room for a professional Balotelli|
|Mourinho wants tougher sanctions for FFP breaches|
|Milan v Juventus: Allegri returns to San Siro|
|Allardyce lauds in-form Downing|
|Real Salt Lake 5 Colorado Rapids 1: Poor visitors lose again|
|Mignolet "aggressive", says Rodgers|
|´Old´ City approaching dangerous position, says Neville|
|Shakhtar´s Donbass Arena hit by shelling|
|Song excited to face hero Gerrard|
|Everything is normal, says Ancelotti|