Third seed Maria Sharapova recovered to beat Frenchwoman Marion Bartoli and reach the semi-finals of the US Open.

Play resumed on Wednesday with the 2006 champion trailing 4-0 in the first set, which she proceeded to lose 6-3.

But Sharapova took the next two sets 6-3 6-4 to set up a last-four encounter against top seed Victoria Azarenka.

Italy’s Sara Errani beat compatriot Roberta Vinci 6-2 6-4 to set up a semi-final against either Serena Williams or Ana Ivanovic.

Three-time champion Williams plays 12th seed Ivanovic later on Wednesday.

Sharapova said: “The rain break gave me a few hours to think about things. I came out so flat yesterday. She’s so tough and she was on fire. I’m so happy to get back to the semi-finals.”

Not since her third-round loss to Flavia Pennetta at Flushing Meadows 12 months ago has Sharapova lost a three-set match, winning 12 out of 12 this season.

And the initial signs were not good for Bartoli as Sharapova won the first two games after the resumption, which was again twice delayed by showers.

But Bartoli held her nerve to clinch the first set before her Russian opponent was forced to save four break points in the third game of the second.

However, Sharapova broke to lead 5-3, levelled the match with her fifth ace and broke the Bartoli serve again to lead 2-1 in the decider.

Bartoli broke back only for Sharapova to strike a major blow in the ninth game courtesy of another break, after which she served out for the match.

The 25-year-old Russian kept alive her hopes of a second major title of the year, having completed a career Grand Slam at the French Open in June.

It is the first time Sharapova has reached the last four of the US Open since she won it six years ago and her semi-final is a rematch of this year’s Australian Open final, which Azarenka won 6-3 6-0.

Tenth seed Errani , 25, was playing in her third Grand Slam quarter-final of the year while best friend Vinci, four years older, was making her last-eight debut at a major.

The pair have won seven doubles titles in 2012, a haul which includes the French Open, but it was Errani’s greater big-match experience that proved decisive.

“It’s always hard to play against a friend and it was strange seeing her on the other side of the net,” said Errani, who has four singles titles to her name this year.

“I am happy to get to the semi-finals. Can I win the title? I will tell you in three or four days.”