Novak Djokovic survived a major scare against home favourite Bu Yunchaokete before recovering to win 4-6, 7-6(2), 6-2 and reach the third round of the China Open in Beijing.

The 39-year-old Serbian was pushed hard by world number 104 Bu in a marathon two-hour, 52-minute battle, but maintained his perfect record in Beijing. 

Djokovic has now won all 32 of his matches at the tournament.

Bu threatened to produce one of the biggest upsets of the event as he repeatedly moved Djokovic around the baseline, but the 11th seed found a way through after falling behind in the opening set.

Djokovic survives second-set scare

Bu took the opening set 6-4 and continued to trouble Djokovic early in the second, pushing the former world number one from side to side.

Djokovic appeared to be struggling physically after giving back a break in the second set and took a medical timeout for a torso issue.

The Serbian nevertheless held his nerve in a tense tie-break, winning it 7-2 to force a deciding set.

Djokovic then raised his level at the crucial moment, winning four consecutive games to establish control of the third set.

He held serve before sealing victory with a backhand winner, ending Bu's challenge after nearly three hours on court.

Djokovic keeps perfect Beijing record intact

The result extends Djokovic's remarkable record at the China Open, where he remains unbeaten after 32 matches.

Bu, 24, had the support of an electrified home crowd throughout the contest and pushed Djokovic much harder than his world ranking suggested.

The Serbian acknowledged the atmosphere afterwards.

"Amazing atmosphere tonight," Djokovic told the crowd, adding that he had "tried to give my all".

Djokovic will now continue his China Open campaign in the third round after surviving one of his toughest tests in Beijing.

In the women's draw, Aryna Sabalenka launched her China Open title charge with a commanding 6-1, 6-3 victory over Renata Zarazua.