SHANGHAI (AP) Roger Federer defeated Novak Djokovic 7-5, 6-4 to set up a final against Andy Murray at the Shanghai Masters.

Federer, who will regain his No. 2 ranking with the win, broke Djokovic three times Saturday after fighting off four break points on his own serve early in the first set.

Federer fell to No. 3 in the rankings after the Serb beat him in the U.S. Open semifinals. This will be Federer's sixth final of the season.

Fourth-ranked Murray beat Juan Monaco of Argentina 6-4, 6-1 in the first semifinal.