(AP) LONDON - Michael Phelps swam into history with his 19th Olympic medal, and this one was a more appropriate color.
With a lot of help from his friends, Phelps took down the last major record that wasn't his alone, swimming the anchor leg for the United States in a gold medal-winning performance of the 4x200-meter freestyle relay Tuesday night.
About an hour earlier, Phelps took one of the most frustrating defeats of his brilliant career, making a shocking blunder at the finish and settling for silver in his signature event, the 200 butterfly.
That tied the record for career medals held by Soviet gymnast Larisa Latynina, but it was hardly a triumphant moment. Phelps slung away his cap in disgust and struggled to force a smile at the medal ceremony.
But any disappointment from that race was gone by the time he dived in the water on the relay, having been staked to a huge lead by teammates Ryan Lochte, Conor Dwyer and Ricky Berens.
Before the race, they all huddled together, fully aware of their moment in history.
"I thanked those guys for helping me get to this moment," Phelps said. "I told those guys I wanted a big lead. I was like, 'You better give me a big lead going into the last lap,' and they gave it to me. I just wanted to hold on. I thanked them for being able to allow me to have this moment."
Berens handed off a lead of nearly 4 seconds to Phelps, who lingered a bit on the blocks, knowing the only way he could blow this one was to get disqualified. Then he set off on what amounted to four victory laps of the pool down and back, then down and back again, the roar in the Olympic Aquatics Centre getting louder as he approached the finish.
Lochte stood on the deck, waving his arms. Dwyer and Berens pumped their fists. And Phelps touched the wall for his first gold of the London Games with a cumulative time of 6 minutes, 59.70 seconds.
No one else was close. France's Yannick Agnel swam a faster final leg than Phelps, but it wasn't nearly good enough, his country taking silver in 7:02.77. China was far back in third at 7:06.30.
Phelps might have backed into the record a bit by failing to win any of his first three events at these games, but there's no denying his legacy as one of the greatest Olympians ever if not THE greatest.
Phelps has 15 golds in his career, six more than anyone else, to go along with two silvers and two bronzes. Latynina won nine golds, five silvers and four bronzes from 1956-64.
"You are now a complete legend," the public-address announced bellowed, accompanied by the Foo Fighters' song "Best of You."
Phelps still has three more races to go before he retires, three more chances to establish a mark that will be hard for anyone to touch.
"It has been a pretty amazing career," he said, "but we still have a couple races to go."
In the first final of the night, Americanwith a dominating performance that left everyone else, including teammate Missy Franklin, battling for the other medals.Allison Schmitt of U.S. wins 200 freestyle gold
Schmitt won with an Olympic-record of 1:53.61. France's Camille Muffat took silver in 1:55.58, almost a body length behind, while Bronte Barrett of Australia took the bronze over Franklin by a thousandth of a second. Barrett touched in 1:55.81. Franklin, who led after the first 50, was fourth in 1:55.82.
"I was just racing," said Schmitt, who is quietly becoming one of the stars of the pool. "I knew I had to kick it. I just look at that scoreboard and see 53 and first place. I couldn't be happier."
She captured her first career gold medal, to go along with a silver in the 400 free and a bronze in the 4x100 free relay.
The 17-year-old Franklin was denied her third medal of the games, one night after her gutsy victory in the 100 backstroke earned her a tweet-out from pop star Justin Bieber.
"I was trying to do the best that I can," said Franklin, who still has four more events in London. "I was in an incredible heat. I really wanted to go best time."