At the 2012 Summer Olympics, Pendleton and Varnish broke the world record in the qualifying stages of the team sprint before being relegated in the semi-finals. She recovered to win a gold medal in the keirin. Pendleton set a new Olympic record of 10.724 seconds in the qualifiers of the sprint but lost in the final to Anna Meares, after being controversially relegated in the first run and being beaten in the second run, earning a silver medal. This would be Pendleton's final competitive race as she retired from professional cycling.