Novak Djokovic has now been victorious in 18 ATP matches in a row and in recent months won Wimbledon, the Cincinnati Masters, the US Open and now Shanghai for a fourth time.
Novak Djokovic and Borna Coric kept fans on the edge of their seats with an incredible rally during the first set.
Roger Federer has not been at his best all week, dropping sets in the two opening matches of his wobbly title defence.
Roger Federer also lost the number one spot in ATP rankings to Rafael Nadal, and missed a chance to earn a record 10th title at Halle.
Novak Djokovic needed 10 match points to see off Borna Coric in the Monte Carlo Masters second round on Wednesday, while world number one Rafael Nadal eased past Aljaz Bedene 6-1, 6-3.
The eighth-seeded Borna Coric defeated Marcel Granollers 7-6 (5), 2-6, 6-4 while Ante Pavic beat Nicolas Almagro 3-6, 7-5, 7-6 (1).
Rafael Nadal survived a scare in his opening US Open 2015 match but managed to hold on and win against Croatia's Borna Coric.
Rafael Nadal, who won his second New York title on his last appearance in 2013 before injury forced him to sit out 2014, prevailed 6-3, 6-2, 4-6, 6-4 against his 18-year-old opponent.
Borna Coric heads for the US Open at Flushing Meadows ranked at 35 and poised to hand two-time champion Rafael Nadal yet another reason to wish for 2015 to end quickly.
Boran Coric, 18, became the youngest player to reach the third round in the French Open since Marat Safin in 1998 when he defeated veteran Spaniard Tommy Robredo, a four-time quarter-finalist, 7-5, 3-6, 6-2, 4-6, 6-4.
Roger Federer's 6-2, 6-1 win took less than an hour, his ability to mix up the patterns with slices, pace changes and net rushes breaking up the rhythms of containment at which Coric previously excelled and making it more difficult to overcome a rookie's tension.
Second seed Roger Federer, who claimed his 50th win of 2014, is bidding to become the oldest major winner in over 40 years.