Goals from Mehdi Taremi and Stephen Eustaquio helped Porto secure a 2-1 win against Atletico Madrid to finish top of their Champions League group.
Porto had already qualified for the last 16 but leapfrogged Club Bruges to finish as group winners with 12 points, one point ahead of the Belgians.
Atletico finished last, failing even to qualify for the second-tier Europa League knockout round playoffs.
Porto went ahead in the fifth minute when forward Taremi tapped in a cross from Evanilson, registering his fifth goal in the Champions League this season.
Midfielder Eustaquio doubled Porto's lead in the 24th minute, drilling the ball into the bottom corner after Galeno sprinted down the left and played a cross inside the box.
Atletico's Antoine Griezmann found the net in the 68th minute but the referee had already blown the whistle for a foul from Rodrigo De Paul on Galeno in the build-up, while Porto keeper Diogo Costa saved a shot from Angel Correa six minutes later.
Porto defender Ivan Marcano scored an own goal in added time, but it did not do much damage to Porto who went on to seal three points.