Roger Federer defeated Leonardo Mayer 7-5, 3-6, 7-6 (9/7) in a thrilling 2nd round match at the Shanghai Masters on Wednesday. Rafael Nadal, meanwhile, lost to fellow Spaniard Feliciano Lopez 6-3, 7-6 (8/6). With this, world number three Federer will unseat 2nd placed Nadal in the ATP rankings. Federer will play 14th seed Roberto Bautista Agut on Thursday.