Valencia's Rodrigo scored the game's only goal as they upset hosts Ajax Amsterdam 1-0 on Tuesday to finish top of Champions League Group H and eliminate the Dutch title winners from this season's competition.
The 24th-minute strike from the Brazil-born Spain international saw Valencia finish ahead of Chelsea, 2-1 victors over Lille, by virtue of the head-to-head result between the two teams, as both ended on 11 points to Ajax's 10.
"We put in such an effort against Chelsea and didn't get the job done, but this side doesn't get tired of working miracles and we've done another tonight," the elated Rodrigo told uefa.com.
"I'm delighted because this side is a big family. I don't have the words to describe my team mates. These last three years we've created something special and we're so together. We've taken a great club back to where it's not been for a long time."
Ajax, the fairytale story of last season's competition with their giant-slaying run from the early preliminary rounds to the semi-final, had needed only to draw their last group game to advance to the last-16.
Yet they looked flat and listless in going down to the Spanish side, who ended with 10 men after the sending off of Gabriel Paulista in stoppage time. The Dutch champions drop down to the Europa League after finishing third.
Rodrigo enjoyed the game's key moment, burying the ball into the top right-hand corner after being teed up by a clever dummy from Ferran Torres, who first feinted to shoot before passing.
The unlikely win left Valencia coach Albert Celades thrilled. "We've had a very good group stage, and to finish top of the group is something. It's all down to the boys," he said.
"Since I came into this club, I told the boys I'm lucky to coach a group like them, with such incredible values and the way they triumph over adversity."
Ajax had begun the game looking confident but were sloppy in their execution and failed to make use of their dominance of possession with uncharacteristically slow build-ups.
It was only after 43 minutes that they threatened with Donny van de Beek trying to hook the ball in from a difficult angle but Valencia veteran Jose Gaya cleared off the goal line.
The half ended with Ajax goalkeeper Andre Onana making a key save to deny Rodrigo a second after the Valencia striker had easily sold Daley Blind a dummy to set up a chance right in front of goal.
A halftime switch for Ajax allowed Hakim Ziyech more freedom to roam as flying fullback Sergino Dest came on but the Morocco international missed a golden 66th minute chance, scuffing a pass from Van de Beek with the Valencia defence at sea.
Ajax brought on 36-year-old targetman Klaas-Jan Huntelaar to try and unlock the Valencia defence in the last 20 minutes but the closing stages were bogged down by squabbles and frequent stoppages, which worked in Valencia's favour.
Yet Valencia centre back Paulista was sent off for an attempted headbutt in a petulant melee deep in stoppage time.