Michael Phelps turned the tables on Ryan Lochte in the 200m freestyle final at the US Olympic swimming trials on Wednesday, edging his rival in a thriller as both booked London Games berths.
Phelps, the former world record-holder and reigning Olympic champion, led at every turn with Lochte right on his shoulder.
Both came hard off the final turn, with Lochte turning up the pressure before Phelps's final push gave him the victory in 1min 45.70sec.
Lochte - who beat Phelps in the event at last year's World Championships in Shanghai - was second in 1:45.75.
The two were already booked for an Olympic clash in the 400m individual medley, in which Lochte beat Phelps in Omaha on Monday.
Phelps also lost to Lochte in their 200m free semi-final on Tuesday -- and said he'd made some changes.
"I saw the semi-finals and watching the turns I just got crushed on the wall so I tried to sort of use more speed and try to take it out," he said.
Lochte was already looking forward to doing it all again in London.
"I love that race," Lochte said. "I love racing against him. "I could be a pool length ahead of him, and he'll still be there at the end. He's a great racer."
Phelps, whose 14 Olympic gold medals include his historic eight-gold haul at Beijing four years ago, returned less than an hour later for the semi-finals of the 200m butterfly, moving safely into the final with the third-quickest time of 1:56.42 behind Bobby Bollier (1:56.06) and Davis Tarwater (1:56.10).
As Phelps was busy lining up more chances to cement his Olympic legacy, teenager Missy Franklin led a changing of the guard in the women's 100m backstroke.
Franklin, the 17-year-old tipped for Olympic stardom after her breakout performance at last year's world championships, surged into the lead on the second lap to win in 58.85sec -- an American record and the fastest time in the world this year.
Rachel Bootsma, 18, was second in 59.49 to punch her ticket to the Games while 29-year-old Natalie Coughlin, the two-time defending Olympic champion in the event, finished third to miss out on a chance at a three-peat.
Only the top two finishers in each event in the eight-day meeting secure places in the Olympic team.
"I did my best, that's all you can ask for," said Coughlin, who swam under the lane ropes at the end to congratulate the ecstatic teens.
"I have dreamed of this moment, but I never thought it would come true at 17 years old," Franklin told the crowd of 12,000 after she was introduced as an Olympic team member. "Dreams do come true."
Like Phelps, Franklin had a busy night. Her impressive 100m backstroke performance followed an appearance in the 200m freestyle semi-finals in which she advanced to the final with the fifth-fastest time.
Breeja Larson sprung a surprise in the women's 100m breaststroke, winning in 1:05.92 ahead of world champion Rebecca Soni - who secured her London spot in 1:05.99.
World record-holder Jessica Hardy was the odd woman out, finishing third in 1:06.53.
Matt Grevers won the men's 100m backstroke in 52.08sec - fastest in the world this year. Nick Thoman claimed the second Olympic berth in 52.86sec.