British gymnast Beth Tweddle has take the bronze in the Women's Uneven bars.
A tearful Tweddle smiled as the crowd applauded her routine and score of 15.916 - despite her wobbly landing.
But a longed-for medal meant it was almost the perfect swan song for the 27-year-old, who is Britain's most decorated gymnast.
The Olympic medal had eluded Tweddle so far, despite having won three world titles and six European titles.
She is the oldest gymnast in nearly 50 years to win an Olympic medal.
Russia's Aliya Mustafina's score of 16.133 meant gold for her, and former Olympic champion China's He Kexin took the silver.
Men's gymnastics silver medallist Louis Smith said: "I thought it was plain sailing, I've seen her do that dismount so many times in training.
"It was just two small steps and it just shows you how close it can be. You really do have to concentrate down to the last second."
Earlier this week, she told the Chester Chronicle: “I would have walked away very disappointed if I hadn’t made a final. At least I’ve got that final to finish my career off.“
Gymnasts are scored on execution and difficulty of their routine.