Madrid - Andy Murray turned the tables on Roger Federer as he earned revenge after losing at the US Open by moving past the Swiss 3-6, 6-3, 7-5 and into the Madrid Masters semi-finals on Saturday.
Murray, who won the last Masters event in August in Cincinnati, will line up on Sunday against the winner from Rafael Nadal and French outsider Gilles Simon.
Murray secured the match six weeks after losing the US Open final to the Swiss, as Federer won his 13th Grand Slam title.
Murray now stands 2-1 over Federer this season following a victory over the former number one in Dubai in February.
Murray moved into winning position as he broke for 6-5 in the final set after Federer had saved two break points in the game. Murray finally managed to come good on his seventh opportunity of the set where he had the majority of the chances.
The Scot then advanced into the final a game later when Federer returned long.
"Against Roger it's difficult to play, once he gets confidence he's hard to stop," said Murray. "Today I changed my my serve. He missed a lot when I wasn't expecting it."
Murray won his 47th match of the season as he bids for his fourth title of 2008.
Federer confirmed that he will play next week at his home event in Basle after returning from a three-week pause only this week. (dpa)

Guangzhou, June 18 : It certainly recalled the memory of Sven-Goran Eriksson from the 'good old days' in Italy and England, when he was surrounded by journalists and fans.
Berlin, June 18 - Germany Under-21 international Christian Clemens has joined Schalke till 2017.
Bridgetown (Barbados), June 18 : West Indies middle order batsman Shivnarine Chanderpaul has been forced to withdraw from the first ever Caribbean Premier League (CPL) because of his contractual obligations with English county team Derbyshire.
London, June 18 : Former India fast bowler Javagal Srinath was Tuesday appointed the match referee for the first Champions Trophy semifinal between England and South Africa at the Oval on Wednesday.
Misano (Italy), June 17 : Both Mahindra Racing riders Andrea Locatelli and Michael Rinaldi performed well in Rounds 5 and 6 of the CIV Moto3 which concluded at the Misano World Circuit here.
Noumea (New Caledonia), June 15 : Gaurav Gill (co-driver Glenn Macneall) took a commanding 12-minute lead for the MRF Tyres Rally team after Day 1 of the Rally of New Caledonia, the second round of the