MADRID (AFP) Rafael Nadal fears the huge game of Roger Federer in Sundays final of the Madrid Masters after the elite rivals set up a re-run of their 2009 title match which was won by the world number one Swiss. The title clash will be the pairs 21st meeting with Nadal holding the advantage at 13 wins to seven. Nadal, crowd favourite and hero at the Caja Magica, moved onto the cusp of more ATP history with his stirring 4-6, 6-2, 6-2 defeat of fellow Spaniard Nicolas Almagro in his semi-final. Federer, meanwhile, put his style on show for a 10th consective victory against Spaniard David Ferrer, with the Swiss going through 7-5, 3-6, 6-3. Hes playing really well and conditions here are perfect for him, said Nadal, who could earn a hat-trick of Masters 1000 titles this season after lifting Monte Carlo and Rome should he beat Federer for a 14th time and for the 10th time in 12 claycourt meetings. He can win a lot of free points with serve and forehand. This court is perfect for him. He is the favourite here for sure. Federer is looking to earn his second title of the year after the Australian Open and prime his clay campaign for a trophy defence starting next Sunday at Roland Garros. Its very strange that we have not played in a year, said Federer. Im really looking forward to playing Rafa again. Its exciting for tennis that we can face off again. I thought I served really well tonight. David is one of the best returners in the game, he fought like crazy. I was worried. Hes always a danger, Im glad I was able to win. I was hoping something like this would happen in Madrid. I feel my game is coming together. The Swiss star slugged it out with Nadals compatriot Ferrer for just over two hours, finally earning a key break for 5-3 and polishing off the battle with an eighth ace. Federer rose to the occasion against the noted claycourt grinder, winning 12 of the last 16 points and producing 38 winners. Another title at the elite ATP level on Sunday would give Nadal a record 18 for his career, one more than Andre Agassi or Federer. Nadal improved to 14-0 on clay this season and will now return to world number two behind Federer by virtue of reaching the final. The match was very close to getting away from me in the second set, said Nadal. Getting into another final is a huge joy. Its been a long spring season on clay and being in this final is a dream. Whatever happens tomorrow, this has been very good. Not in my wildest dreams could I have thought of winning two Masters 1000 and getting to the final of a third. Nadal rallied after dropping his serve three times in the opening set against Almagro, a winner this week over French Open finalist Robin Soderling, Nadals Paris conqueror a year ago in the fourth round. My serve was terrible in that first set. Very strange, complained the four-time Roland Garros champion. The second seed from Mallorca powered through the second set in typical style and went up a break in the third to drain the life out of Almagros challenge. Nadal raced away to 4-1 in the deciding set and broke for victory in the final game as Almagro saved a match point before going down in two and a quarter hours. The way I was playing at the start was the way I had to play, said Almagro. Ill have to keep working and maybe sooner or later I can manage to beat Rafa. I managed to be very aggressive and took his game to the limit in the first set. Nadal now has a 6-0 career record against Almagro, the world number 35 whose last title came on clay in 2009 in Mexico.