The Swiss will stand behind Novak Djokovic on the ATP list after winning the 74th title of his career.
Federer went level with Rafael Nadal, who will slip to three in the world, on 20 career titles at the Masters 1000 level, with both men holding the record. The 30-year-old Federer was playing in his 104th ATP final and won his fourth title of the season.
'Look' how the Sheena Bora case has taken a toll on Indrani Mukerjea
Photos: Katrina Kaif, Parineeti Chopra, Shilpa Shetty's movie outing in Juhu
Birthday special: 14 Bollywood actors who made it big on TV
Photos: Vaani Kapoor, Poonam Pandey, Sana Khan at fashion event
Photos: Rishi Kapoor, wife Neetu, daughter Riddhima at book launch