The sun has set on Serena Williams' historic tennis career.
The 40-year-old legend, who said she will "evolve away" from the sport after the US Open, lost her third-round match at the tournament on Friday, falling 7-5, 6-7 (4), 6-1 to Australia's Ajla Tomljanović.
"Thank you so much. You guys were amazing today," she told the crowd in an on-court interview after the match. "It's been a fun ride."
Over her career, Williams won 23 grand slam singles titles, which is the most in the Open era and one behind the all-time record held by Margaret Court. She also won four Olympic gold medals and over $94.5 million in prize money.
She and her older sister, Venus, transformed the sport when they became professionals as teenage phenoms. They've also teamed up for many grand slam doubles titles, winning 14 titles together.
The two sisters reunited on the court Thursday with a first-round doubles match against Lucie Hradecká and Linda Nosková. They lost 7-6 (5), 6-4.
![People cheer on Williams at Arthur Ashe Stadium.](https://media.cnn.com/api/v1/images/stellar/prod/220902215211-12-serena-williams-090222.jpg?q=w_1576,c_fill)
![Williams reacts after losing to Ajla Tomljanović on Friday. "These are happy tears," Williams said during her on-court interview.](https://media.cnn.com/api/v1/images/stellar/prod/220902192920-04-serena-open-0902.jpg?q=w_1576,c_fill)
![Williams motions a heart to her fans after the match on Friday.](https://media.cnn.com/api/v1/images/stellar/prod/220902224831-17-serena-williams-090222.jpg?q=w_1576,c_fill)
![Williams shakes hands with Tomljanović after the match.](https://media.cnn.com/api/v1/images/stellar/prod/220902224829-16-serena-williams-090222.jpg?q=w_1576,c_fill)
![Williams returns a shot on Friday. The match lasted a little more than three hours, and Williams fought off five match points in the final game.](https://media.cnn.com/api/v1/images/stellar/prod/220902223915-14-serena-williams-090222.jpg?q=w_1576,c_fill)
![Fans cheer on Williams on Friday.](https://media.cnn.com/api/v1/images/stellar/prod/220902213351-09-serena-williams-090222.jpg?q=w_1576,c_fill)
![Williams serves during Friday's match.](https://media.cnn.com/api/v1/images/stellar/prod/220902203010-05-serena-williams-090222.jpg?q=w_1576,c_fill)
![Williams' coach, Rennae Stubbs, and mother, Oracene Price, watch on Friday.](https://media.cnn.com/api/v1/images/stellar/prod/220902215207-11-serena-williams-090222.jpg?q=w_1576,c_fill)
![Williams returns a shot on Friday.](https://media.cnn.com/api/v1/images/stellar/prod/220902212518-08-serena-williams-090222.jpg?q=w_1576,c_fill)
![Williams reacts during Friday's match.](https://media.cnn.com/api/v1/images/stellar/prod/220902214607-06b-serena-williams-090222.jpg?q=w_1576,c_fill)
![Tomljanović celebrates after winning the first set Friday.](https://media.cnn.com/api/v1/images/stellar/prod/220902202351-04-serena-williams-090222.jpg?q=w_1576,c_fill)
![Fans watch as Williams is introduced at Arthur Ashe Stadium on Friday.](https://media.cnn.com/api/v1/images/stellar/prod/220902193856-02-serena-williams-090222.jpg?q=w_1576,c_fill)
![Williams walks onto the court ahead of her match Friday.](https://media.cnn.com/api/v1/images/stellar/prod/220902193920-03-serena-williams-090222.jpg?q=w_1576,c_fill)
![Williams and her sister, Venus, played doubles together on Thursday. They lost in the first round, however, to Lucie Hradecka and Linda Noskova.](https://media.cnn.com/api/v1/images/stellar/prod/220901195836-bpt101-serena-williams-venus-williams-doubles-090122.jpg?q=w_1576,c_fill)
![Williams, lower left, serves during Thursday's doubles match.](https://media.cnn.com/api/v1/images/stellar/prod/220901205121-bpt104-serena-williams-venus-williams-doubles-090122.jpg?q=w_1576,c_fill)
![Williams takes pictures with fans at Arthur Ashe Stadium after her second-round singles win on Wednesday. She knocked off second-seeded Anett Kontaveit 7-6 (4), 2-6, 6-2.](https://media.cnn.com/api/v1/images/stellar/prod/220831222637-33-serena-williams-us-open-match-2.jpg?q=w_1576,c_fill)
![Williams celebrates after her win Wednesday.](https://media.cnn.com/api/v1/images/stellar/prod/220831222314-31-serena-williams-us-open-match-2.jpg?q=w_1576,c_fill)
![Williams reaches for a shot during Wednesday's match.](https://media.cnn.com/api/v1/images/stellar/prod/220831205342-13-serena-williams-us-open-match-2.jpg?q=w_1576,c_fill)
![The fans at Arthur Ashe Stadium cheered every point Williams won on Wednesday, just as they did on Monday.](https://media.cnn.com/api/v1/images/stellar/prod/220831205343-14-serena-williams-us-open-match-2.jpg?q=w_1576,c_fill)
![Williams watches a replay during Wednesday's match.](https://media.cnn.com/api/v1/images/stellar/prod/220831214805-24-serena-williams-us-open-match-2.jpg?q=w_1576,c_fill)
![Williams prepares to serve Wednesday.](https://media.cnn.com/api/v1/images/stellar/prod/220831215447-27-serena-williams-us-open-match-2.jpg?q=w_1576,c_fill)
![Golf legend Tiger Woods reacts to a Williams point on Wednesday.](https://media.cnn.com/api/v1/images/stellar/prod/220831205334-10-serena-williams-us-open-match-2.jpg?q=w_1576,c_fill)
![Kontaveit, a 26-year-old from Estonia, returns a shot.](https://media.cnn.com/api/v1/images/stellar/prod/220831212106-anett-kontaveit-us-open-0831.jpg?q=w_1576,c_fill)
![Williams reacts after winning the first set tiebreaker on Wednesday.](https://media.cnn.com/api/v1/images/stellar/prod/220831205345-15-serena-williams-us-open-match-2.jpg?q=w_1576,c_fill)
![Williams has won six US Open singles titles during her illustrious career.](https://media.cnn.com/api/v1/images/stellar/prod/220831215450-28-serena-wiliams-us-open-match-2.jpg?q=w_1576,c_fill)
![Williams serves during Wednesday's match.](https://media.cnn.com/api/v1/images/stellar/prod/220831200816-01-serena-williams-us-open-match-2.jpg?q=w_1576,c_fill)
![Williams and Kontaveit pose before the start of their match.](https://media.cnn.com/api/v1/images/stellar/prod/220831200822-03-serena-williams-us-open-match-2.jpg?q=w_1576,c_fill)
![Fans enter Arthur Ashe Stadium for Wednesday's match.](https://media.cnn.com/api/v1/images/stellar/prod/220831200824-04-serena-williams-us-open-match-2.jpg?q=w_1576,c_fill)
![Williams' sister Venus, left, watches Wednesday's match near Woods and his partner, Erica Herman.](https://media.cnn.com/api/v1/images/stellar/prod/220831200827-06-serena-williams-us-open-match-2.jpg?q=w_1576,c_fill)
![Williams walks onto the court before her match on Wednesday.](https://media.cnn.com/api/v1/images/stellar/prod/220831200828-07-serena-williams-us-open-match-2.jpg?q=w_1576,c_fill)
![Fans at Arthur Ashe Stadium show their love for Williams after Monday's opening win over Danka Kovinic.](https://media.cnn.com/api/v1/images/stellar/prod/220829215018-22-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)
![Tennis icon Billie Jean King congratulates Williams after Monday's match. King also spoke during a post-ceremony recognizing Williams and her tremendous career.](https://media.cnn.com/api/v1/images/stellar/prod/220829214154-21-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)
![The crowd was firmly in Williams' corner on Monday, cheering every point she won.](https://media.cnn.com/api/v1/images/stellar/prod/220829213845-16-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)
![Williams reacts during the match on Monday.](https://media.cnn.com/api/v1/images/stellar/prod/220829213842-14-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)
![Fans outside the stadium watch the Williams match on a video screen Monday.](https://media.cnn.com/api/v1/images/stellar/prod/220829214145-18-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)
![Williams returns a shot on Monday. It was just her second win since her return to the sport in June. She had missed a year through injury.](https://media.cnn.com/api/v1/images/stellar/prod/220829210655-03-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)
![Fans cheer for Williams during Monday's match.](https://media.cnn.com/api/v1/images/stellar/prod/220829210657-04-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)
![Williams' daughter, Olympia, takes a picture before her mom's match on Monday.](https://media.cnn.com/api/v1/images/stellar/prod/220829210659-05-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)
![Williams serves during Monday's match.](https://media.cnn.com/api/v1/images/stellar/prod/220829221501-20b-serena-wiliams-us-open-match-1.jpg?q=w_1576,c_fill)
![Williams and Kovinic pose for photos before playing Monday. Kovinic, a 27-year-old from Montenegro, is ranked 80th in the world.](https://media.cnn.com/api/v1/images/stellar/prod/220829210700-06-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)
![Williams walks onto the court before her match Monday. Many consider her to be the greatest women's tennis player of all time.](https://media.cnn.com/api/v1/images/stellar/prod/220829210702-07-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)
![Williams has been wearing <a href="index.php?page=&url=https%3A%2F%2Fwww.espn.com%2Ftennis%2Fstory%2F_%2Fid%2F34482087%2Fserena-williams-wear-diamond-encrusted-nike-fit" target="_blank" target="_blank">diamond-encrusted shoes</a> during the tournament.](https://media.cnn.com/api/v1/images/stellar/prod/220829210702-08-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)
![Williams warms up before her match on Monday.](https://media.cnn.com/api/v1/images/stellar/prod/220829210704-09-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)
![Williams' husband, Alexis Ohanian, watches Monday's match with their daughter, Olympia.](https://media.cnn.com/api/v1/images/stellar/prod/220829211344-10-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)
![Fans show their support for Williams outside the stadium Monday.](https://media.cnn.com/api/v1/images/stellar/prod/220829211347-11-serena-williams-us-open-match-1-restricted.jpg?q=w_1576,c_fill)
![Williams walks to the practice court before her match on Monday.](https://media.cnn.com/api/v1/images/stellar/prod/220829211348-12-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)
![Fans pose for photos next to a life-sized image of Williams on Monday.](https://media.cnn.com/api/v1/images/stellar/prod/220829211349-13-serena-williams-us-open-match-1.jpg?q=w_1576,c_fill)