Maria Sharapova's first Grand Slam tournament in 19 months ended with defeat by Anastasija Sevastova in the US Open fourth round.
Latvia's Sevastova, the 16th seed, won 5-7 6-4 6-2 to reach the quarter-finals in New York.
The 27-year-old will play Sloane Stephens in the quarter-finals, after the American beat Julia Goerges.
Sharapova, ranked 146th after returning from a doping ban in April, was given a wildcard into the main draw.
"It's been a really great ride in the last week," said the 30-year-old.
"I can take a lot from this week. It's great to get that major out of the way.