 Federer won his first Master Series event at the 2002 Hamburg Masters on clay , over Marat Safin ; the victory put him in top 10 for the first time . Federer made 10 singles finals between 1998 and 2002 , of which he won four and lost six . He also made six finals in doubles . Of note are Federer and partner Max <unk> 's defeat in the final of the Indian Wells Masters in 2002 , and their victory in the same year in the final of the Rotterdam 500 series event . Federer had won the latter a year earlier with partner Jonas <unk> . He finished 2001 with an ATP ranking of No. 13 , and 2002 was the first year he was ranked within the top 10 , finishing at No. 6 . 
