Novak Djokovic saved five match points in the second set before outlasting two—time defending champion Andy Murray 5—7, 7—6 (11), 6—3 Sunday in the Shanghai Masters final.

In another entertaining struggle between the two, Djokovic seemed headed for defeat when Murray was serving for the match at 5—4 in the second set, but saved one match point in that game before breaking back for 5—5. He then saved four more match points in a tense tiebreaker and carried his momentum into the deciding set, breaking the Briton twice to earn his fifth title of the year.

It was Murray’s first loss in Shanghai in 13 matches.

Murray saved two match points in the final game, but sent a backhand long on the third.

More In: Tennis | Sport