Bayer Leverkusen progressed to the knockout stages of the UEFA Champions League with a hard-fought 1-0 win at Real Sociedad.
The Germans needed to produce a better result at Anoeta than Shakhtar Donetsk could manage away to Manchester United, and they did their bit with a battling away victory.
The Ukrainians' 1-0 defeat in England made sure the job was completed, as Leverkusen progressed as Group A runners-up.
Leverkusen created the first half's better chances as a Gonzalo Castro free-kick hit the post and Simon Rolfes headed over, but Antoine Griezmann was presented with several opportunities of his own to give the Spaniards something to show for their efforts.
After a string of missed chances before the break for both sides, Omer Toprak finally prodded the visitors into the lead four minutes after the restart, while Stefan Kiessling headed against the crossbar.
The hosts attempted to push men forward towards the end as they sought their first home Champions League goal since December 2003, but Leverkusen held firm.
Sociedad coach Jagoba Arrasate made six changes from the team that lost 4-0 to Shakhtar Donetsk in their last European match, with injured duo Claudio Bravo and Inigo Martinez the most notable absentees.
Leverkusen went into the match on the back of a 1-0 win at Borussia Dortmund in the Bundesliga, with coach Sami Hyypia keeping faith with that side.
The hosts were the first to threaten as the in-form Griezmann fired an audacious half-volley just wide from 30 yards in the eighth minute.
Little more than 60 seconds later Leverkusen went close themselves, as Castro’s free-kick came back off Enaut Zubikarai's right-hand post.
Another Castro set-piece wreaked havoc in the 23rd minute. The German's left-wing delivery evaded the Real defence, but Rolfes headed over three yards from goal.
The hosts gradually began to assert control as the half drew to a close, but Griezmann missed the target with a hat-trick of chances before Carlos Vela agonisingly failed to connect with the Frenchman's low cross.
Hyypia showed his intent by replacing midfielder Jens Hegeler with the attack-minded Robbie Kruse at half-time and it did not take the Germans long to take the lead.
Kiessling saw his 49th-minute header tipped over by Zubikarai and from the resulting corner Toprak poked the ball home after the Spaniards had failed to clear their lines.
Leverkusen's second-half gameplan revolved around getting crosses into Kiessling, but he spurned two more chances from Kruse deliveries, hitting the post before being denied by Zubikarai.
Kruse was the source of danger again in the 72nd minute as the Australian's cross was controlled by Son Heung-Min, but the forward smashed his half-volley well over from near the penalty spot.
Leverkusen invited pressure in the final stages, but they retained their lead despite the hosts' late pressure to seal the their progress.
|Allardyce: Rooney must wait for captaincy decision|
|Aubameyang: I will only leave Dortmund for Real Madrid|
|Allegri silences questions on Pogba|
|Bruce stands by decision to quit Hull City|
|Pochettino: Not the right time for Argentina job|
|Inter yet to approach De Boer with Mancini exit rumoured|
|Ancelotti trusts me more than Guardiola - Ribery|
|Wijnaldum rejected Everton for Klopp|
|Pre-season Manchester derby cancelled|
|Coutinho excited by ´fast´ Liverpool recruits|
|Cristiano Ronaldo and Conor McGregor step into the ring together|
|Mancini coy on reports linking Icardi to Napoli|
|Nolito reveals why he chose Man City over Barcelona|
|Inter 1 Paris Saint-Germain 3: Icardi absence in defeat fuels Napoli talk|
|MLS Review: Wright-Phillips double inspires Red Bulls to New York derby rout|
|James seeks more game time at Madrid|
|Rooney: I want to be a manager|
|Mignolet welcomes Karius challenge in Liverpool number one battle|
|Batshuayi buoyed by winning vibes at Chelsea|
|Moyes and Sunderland players diverted after plane fault|
|´Loved´ Varane targets long Madrid stay|
|Kostic set for Hamburg medical|
|Leicester crying over Kante sale - Ranieri|
|Schurrle the perfect Mkhitaryan replacement - Tuchel|
|West Ham face anxious wait on Cresswell injury|
|Mourinho will accept criticism from United legends|
|Bertolacci desperate for fresh start after underwhelming first season at Milan|
|Hoops hand Toure one-year deal|
|Origi ready to fight for Liverpool spot|
|Emery wants PSG stay for ´fantastic´ Matuidi|
|No Barcelona offer for Vietto - Cerezo|
|Burnley apologise for racist abuse from supporter|
|Guardiola will not rush Kompany comeback|
|Of course I´ll shake Guardiola´s hand, snaps riled Mourinho|
|Watzke: No more signings for Dortmund|
|Roma expect Manolas to snub Premier League move|
|Adriano set to leave Barcelona for Besiktas|
|Manchester United in worst possible situation - Mourinho|
|Sporting would have to sell stadium to afford Van Persie - Jesus|
|Jonas´ agent confirms Barcelona approach|
|No problem with Mourinho, insists Guardiola ahead of derby in China|
|Toronto´s hat-trick hero Giovinco: I´m back|
|Drogba revels in ´special night´, dedicates hat-trick to family|
|MLS Review: Hat-tricks for Drogba and Giovinco as stars shine|
|Whelan backs Liverpool for top-four finish|
|Pellegrini still waiting for right offer|
|Ronaldo deserves to win Ballon d´Or - Vazquez|
|Phelan wants Hull job|
|Alaba saddened by Gotze exit|
|Morgan: Vardy right to re-sign|
|Maradona ´hurting´ as Higuain closes on Juventus move|
|Moyes watches Sunderland win, Ibe opens account in six-goal Bournemouth thriller|
|Messi cuts short holiday for Barcelona training camp|
|Ranieri still confident of keeping Mahrez|
|Toure to complete Celtic move on Sunday, says Rodgers|
|Vietto sends Simeone a reminder amid Barcelona links|
|Celtic 1 Leicester City 1 (5-6 on penalties): Mahrez magic the highlight as Ranieri´s side triumph i|
|Ribery, Alaba on target in Bayern win|
|Neymar hails Micale ahead of Olympic tilt|
|Ronaldo wants Real Madrid renewal|
|Ochoa joins Granada from Malaga|
|Heidel quashes Meyer to Liverpool as ´nonsense´|
|Scholes challenges Allardyce to change England mentality|
|Tenerife star Crosas investigated for killing endangered shark|
|De Gea: Manchester United can win title under Mourinho|
|Marseille replace Batshuayi with brother Leya Iseka|
|Cristiano Ronaldo: Best season of my career|
|Scholes: Pogba is not worth £100million|
|Gotze has not forgotten how to play football - Riedle|
|Delph learning more than ever under Guardiola|
|Jovetic ´not worried´ about Juventus|
|Allardyce wants Euro 2016 woes to fire his England|
|Giggs not in a rush to take manager´s job|
|Lopetegui: If not for Spain I would be Wolves boss|
|Shaw one of best left-backs in world - Herrera|
|Injured Sanchez to miss Arsenal tour|
|Melbourne Victory 1 Juventus 1 (Melbourne win 4-3 on pens): Thomas inspires Victory as Juve pay pena|
|Janssen: Ajax and PSV were never going to pay as much as Tottenham|
|Bayern to make Munich shooting tributes|
|Wenger wishes luck to old foe Allardyce|
|United defender Varela joins Frankfurt on loan|
|Sunderland appoint Moyes as Allardyce replacement|
|Javi Martinez devastated by Munich shootings|
|Rooney: I´m desperate to play for Mourinho, just like under Ferguson|
|Godin: Champions League the dream, but LaLiga the focus|
|Klopp hails Wijnaldum´s ´football smartness´|
|Klavan ready to fight for starting spot after completing ´dream´ Liverpool move|
|Real Salt Lake 1 San Jose Earthquakes 1: Mulholland salvages point|
|Madeira airport to be named after Cristiano Ronaldo|
|Villar, Ceferin and Van Praag announce UEFA presidential bid|
|Witsel has offers from England and Italy|
|Tuchel will bring out Gotze´s best - Watzke|
|Swansea confirm interest in Liverpool´s Allen|
|Arsenal´s Coquelin: LeBron v Curry is like Messi v Ronaldo|
|Rooney backs Allardyce appointment|
|Bayern and Ancelotti respond to Munich attacks|
|West Brom friendly cancelled over violence concerns|