Leeds gymnast Nile Wilson became the first Briton ever to win an Olympic medal in the horizontal bar after a spectacular routine earned him bronze Tuesday's final.
Wilson scored 15.466 which put him in second behind gold medallist Favian Hambuechen throughout the competition.
The 20-year-old looked set to win a silver until American Danell Leyva pipped him in the last routine of the final by 0.033.
German Hambuechen set the pace from the first routine to win a first Olympic gold of his career with a score of 15.766.
Wilson wept with joy as he received his medal and said winning bronze was a "dream come true".
Wilson said: “It is difficult to put into words how I am feeling right now. I have loads of emotion and I certainly let it show up there on the podium.
"Everyone knew it was tears of pride and tears of happiness. My family were out there in the stands balling their eyes out and I think that set me off.
“It is something you train your whole life for and you dream about wearing these medals around your neck.
"I just went out there and focused on my potential, my gymnastics, my high bar routine and forgot about everything else that was going on around me.
“It wasn’t the best routine I could have done but it was a routine and I’m so happy to have a medal."
Wilson had qualified for the final in second place and went on to put the disappointment of narrowly missing out on a team bronze last week firmly behind him.
Great Britain now has seven medals in the gymnastics event following 16-year-old Amy Tinkler's third place in the women's floor.