New York - Maria Sharapova's Grand Slam return after a 15-month doping ban ended on Sunday with a fourth-round defeat at the US Open but the former world number one considered it a major step in her comeback.
Latvian 16th seed Anastasija Sevastova rallied to eliminate the five-time Grand Slam champion 5-7, 6-4, 6-2 at Arthur Ashe Stadium, booking a quarter-final against American Sloane Stephens, who ousted Germany's Julia Goerges 6-3, 3-6, 6-1.
Sharapova, the 2006 US Open winner, was able to find the positives after making 51 unforced errors to only 14 by Sevastova, whose 21 winners were half the 30-year-old Russian's total.
"Reflecting back on the week, I can be happy," Sharapova said. "It has been a really great ride. Ultimately, I can take a lot from this week."
Tuesday's other quarter-final will match Czech 13th seed Petra Kvitova, a two-time Wimbledon champion, against US ninth seed Venus Williams, seeking her eighth Slam title and third US Open crown.
Kvitova eliminated Spanish third seed and two-time Slam winner Garbine Muguruza 7-6 (7/3), 6-3 while Williams beat 35th-ranked Spaniard Carla Suarez Navarro 6-3, 3-6, 6-1.
In Sharapova's first Slam since she tested positive for the banned blood booster meldonium at the 2016 Australian Open, she ousted second-ranked Simona Halep in the first round and served notice to any contender her game remains formidable.
"She played unbelievable throughout the first and second set and I just kept fighting, running for every ball," Sevastova said.
"I was confident. I was feeling it. But still you have to beat her. She was playing one of the best matches here."
Sharapova returned from her suspension in April, was snubbed for a French Open wildcard and missed Wimbledon with a thigh injury but received a US Open wildcard despite only one hardcourt tuneup match due to a left forearm injury.
"It's great to get that major out of the way," Sharapova said. "I'm thankful for the opportunity. I did my best and I can be proud of that."
Sharapova is expected to jump from 146th to around 100th in the world rankings.
Williams is the oldest woman entered at 37 but was this year's Wimbledon and Australian Open runner-up. She hasn't reached three Slam finals in a year since 2002.
"I'm focused on myself and trying to be as aggressive as possible," Williams said. "Nobody ever gives you a Slam. You've got to take it and I'm going to try and take it."
Kvitova, 4-1 all-time against Williams, missed five months after a knife-wielding home intruder injured her left hand last December.
"I worked hard to come back and be here. It means a lot," Kvitova said. "I don't have words to describe. It was a tough time. All five months were very tough.
"It was just a journey I didn't know how it would end. If it ends here on the big stage it's a happy end."
Muguruza still leads the fight for world number one after the Open but will be overtaken if fourth seed Elina Svitolina makes the semi-finals or top seed Karolina Pliskova reaches the final.
Stephens missed 11 months with a foot injury and returned only at Wimbledon, but has won 12 of her past 14 matches for her deepest US Open run in six tries.
"I honestly couldn't have asked for a better comeback," Stephens said. "Making it to the quarter-finals here is unbelievable."
In a men's draw assured of producing a first-time Slam finalist, Spanish 12th seed Pablo Carreno Busta meets Argentine 29th seed Diego Schwartzman in the last-eight while South African 28th seed Kevin Anderson meets US 17th seed Sam Querrey, who beat German 23rd seed Mischa Zverev 6-2, 6-2, 6-1.
Anderson matched his best Slam run from the 2015 US Open by beating Italy's Paolo Lorenzi 6-4, 6-3, 6-7 (4/7), 6-4.
"I got off to a great start the first two sets and imposed my game," Anderson said. "I had to dig deep and it feels absolutely fantastic to get through."
Carreno Busta, who has not dropped a set, ended Canadian 18-year-old qualifier Denis Shapovalov's dream run 7-6 (7/2), 7-6 (7/4), 7-6 (7/3).
Shapovalov would have been the youngest Slam quarter-finalist since Michael Chang at the 1990 French Open and youngest at the US Open since Andre Agassi in 1988.
"The biggest lesson is that I'm able to compete with these guys," Shapovalov said. "I still think I have a lot of work to do."
Schwartzman eliminated French 16th seed Lucas Pouille 7-6 (7/3), 7-5, 2-6, 6-2. At 1.70m, he is the shortest Grand Slam quarter-finalist since Peruvian Jaime Yzaga at the 1994 US Open.
Results from day 7 of the US Open on Sunday (x denotes seeding):
Sam Querrey (USA x17) bt Mischa Zverev (GER x23) 6-2, 6-2, 6-1
Kevin Anderson (RSA x28) bt Paolo Lorenzi (ITA) 6-4, 6-3, 6-7 (4/7), 6-4
Pablo Carreno-Busta (ESP x12) bt Denis Shapovalov (CAN) 7-6 (7/2), 7-6 (7/4), 7-6 (7/3)
Diego Schwartzman (ARG x29) bt Lucas Pouille (FRA x16) 7-6 (7/3), 7-5, 2-6, 6-2
Venus Williams (USA x9) bt Carla Suarez Navarro (ESP) 6-3, 3-6, 6-1
Petra Kvitova (CZE x13) bt Garbine Muguruza (ESP x3) 7-6 (7/3), 6-3
Sloane Stephens (USA) bt Julia Goerges (GER x30) 6-3, 3-6, 6-1
Anastasija Sevastova (LAT x16) bt Maria Sharapova (RUS) 5-7, 6-4, 6-2