Stan Wawrinka's glittering Grand Slam career has come to an end.
The 41-year-old Swiss bowed out of his final major tournament on Monday after losing 7-6 (7-4) 7-6 (7-3) 6-0 to Italy's Matteo Berrettini in the first round of the US Open.
Wawrinka had announced that he would retire at the end of the season, making his return to New York a particularly emotional occasion.
The three-time Grand Slam champion was given a hero's reception on Grandstand, where he repeatedly threatened to extend his farewell before Berrettini finally closed out a contest that echoed their dramatic meeting at Wimbledon earlier this year.
Wawrinka pushed Berrettini to the limit
The Swiss made a slow start but refused to let the opening set disappear.
After Berrettini moved ahead, Wawrinka broke to love when the Italian served for the set and then earned a set point in a marathon game.
Berrettini survived four deuces before forcing a tiebreak, where he held his nerve by winning three consecutive points to take the opening set.
Wawrinka again found a route back into the match in the second.
A short rain delay was followed by an early break of Berrettini's serve, but the veteran could not capitalise.
He had seven break points, including three set points, only for Berrettini to repeatedly find a way out of trouble. The Italian eventually broke back and forced another tiebreak, which he won to move within one set of victory.
The third set proved far more straightforward.
The opening game lasted 16 minutes after Berrettini unsuccessfully challenged a call involving a possible double hit, but the former world number six eventually prevailed and then took control.
Three breaks followed as Berrettini completed a 6-0 final set to bring Wawrinka's Grand Slam career to an end.
Wawrinka grateful for final US Open chance
The occasion carried added significance because Wawrinka had initially been left out of the singles field after failing to receive a wildcard.
The decision prompted a strong reaction from fans before Patrick Kypson's withdrawal through injury opened a place for the former world number three.
Wawrinka had already said he was at peace with the decision to retire and wanted only to experience one final appearance at the tournament where he won his third Grand Slam title in 2016.
"It's been 20 years since the first time I came here. It was amazing for me to feel the New York vibes throughout the years. I found the way to play my best tennis here," Wawrinka said.
"One of the reasons I played until 41 was to live these moments. I'm very grateful for this wildcard. It was very important for me to finish here, where I won a Grand Slam 10 years ago.
"I want to thank you all for all these years."
For Berrettini, a US Open semi-finalist in 2019, the victory sets up a second-round meeting with Mariano Navone.
The Argentine produced the tournament's biggest upset so far by defeating fourth seed Novak Djokovic in five sets on Sunday.
For Wawrinka, though, the result was ultimately secondary.
After 20 years of competing at the US Open, the final chapter of his remarkable Grand Slam career had arrived.