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, had been given a wildcard into the main draw.
The 2006 champion had played just one match since May coming into Flushing Meadows, with injuries forcing her out of the grass-court season and US Open build-up.