Carlos Alcaraz beat Daniil Medvedev to set up a semi-final showdown with Novak Djokovic at the ATP Finals.
There had been a very real danger that Djokovic, looking to win the title for a record-breaking seventh time, would not make it out of his group, with the world number one edging through in second spot as a result of Jannik Sinner's win over Holger Rune.