Paris Saint-Germain and Kylian Mbappé were left holding a ticket to the Champions League knockout round after a tense finish to the tightest group saw Newcastle let its chance slip.
Porto also earned its place in the round of 16 draw on Monday with a 5-3 victory over Shakhtar Donetsk, which needed to win to advance.
PSG's 1-1 draw at Group F winner Borussia Dortmund — earned by 17-year-old Warren Zaïre-Emery's 56th-minute leveler — was enough to secure second place because Newcastle lost 2-1 at home to AC Milan.