Lydia Jacoby became the first Alaskan swimmer to win Olympic gold, securing the medal in the 100-meter breaststroke at 1:04.95 in a major upset Monday.

Jacoby, 17, shocked the world by sprinting the last 50 meters of the race to finish ahead of South Africa's Tatjana Schoenmaker and USA's defending gold medalist, Lilly King. Schoenmaker took the silver, and King captured bronze, her first defeat in a 100-meter breaststroke final since December 2016.

As she touched the wall and looked up, she looked stunned. King swam over, holding her hands and slapping the water in joy.

Jacoby became one of the youngest American swimmers to win an Olympic gold, joining elite company. The only younger United States swimmers to win an individual gold in the past 20 years were Katie Ledecky and Missy Franklin.

Jacoby, who is from Seward, Alaska, moved to Anchorage earlier this year to train. Her community watched live from Seward, jumping and screaming in joy as No. 1 displayed against her name in the pool.

"We love to keep that gold in the USA family, so this kid just had the swim of her life and I am so proud to be her teammate," Lilly King said in the on-camera interview after the race.

Jacoby is the first swimmer and only the 10th Olympian to be born in Alaska.