A second-half revival saw RC Deportivo La Coruña make sure of a place in the second group stage of the UEFA Champions League with a 2-1 win against Group G winners AC Milan at the San Siro.
Goals from Diego Tristán and Roy Makaay made RC Lens's battling 3-3 draw at FC Bayern München in the other Group G game an irrelevance, as the Spanish side overcame a one-goal deficit and an impassive Milan defence.
Deportivo dominated possession in the opening period but still found themselves a goal behind at half-time despite having the lion's share of the goalscoring opportunities.
Luque goes close
Alberto Luque shot just wide of Christian Abbiati's left-hand post after 12 minutes and went even closer three minutes later. With the goalkeeper having raced off his line to punch the ball away from Makaay, Luque had the chance to lift the ball into an empty net from 25 metres, but his lob just cleared the crossbar.
Makaay himself had a good chance after 25 minutes as the ball was slipped to him by Lionel Scaloni, but his fierce drive went straight at Abbiati. Three minutes later, Deportivo goalkeeper Juanmi García was thanking his lucky stars as a Rui Costa cross from the touchline bounced off the top of his crossbar. Yet there was little he could do to deny Jon Dahl Tomasson Milan's opening goal.
Georgian defender Kakha Kaladze was allowed a little too much space on the left wing and played in an excellent cross which the Danish striker rose to head across the goalkeeper and just inside his left-hand post. With their Champions League future at stake, Deportivo upped the pace in the second half, but it took the arrival of José Amavisca as a 56th-minute substitute for Luque to turn Deportivo's fortunes around.
Just a minute after Serginho had stretched Juanmi to the limit with an excellent lob, the substitute found Tristán with a ball from the left, and the striker was allowed space to compose himself before hitting a terrific drive from 30 metres which Abbiati got a fingertip too as it flew into the top right-hand corner of his goal.
Buoyed by that strike, Deportivo went on the attack almost immediately, and Abbiati was at full stretch to deny Makaay as he shot from distance after 62 minutes, but better was to come for the Dutch striker.
Once more, it was Amavisca who provided the pass and, with Milan retreating after a counterattack, the substitute picked out the on-rushing Makaay with a defence-splitting pass, allowing the striker to outpace his marker before drilling a low shot past Abbiati from 20 metres.
For the remainder of the game, it was Deportivo's turn to show their defensive resilience, and even the arrival of Filippo Inzaghi as a late substitute could not dent Javier Irureta's side's resolve.