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.
Photos: 'Dangal' girls Sanya Malhotra, Fatima Sana Shaikh's dinner outing
Photos: Salman Khan, Daisy Shah spotted at the Mumbai airport
Photos: Rakhi Sawant to play Honeypreet in Ram Rahim biopic
Photos: Arvind Kejriwal asks Kamal Haasan to join politics
Photos: TV actress who played goddesses on the small screen