Aliona Savchenko and Bruno Massot were flawless as the rest of the top contenders fell, and their free skate was enough to give the German pair Olympic gold.
Savchenko and Massot scored 159.31 points in their program set to music by Armand Amar on the final day of pairs skating at the Pyeongchang Games. That gave them 235.90 points, catapulting them from fourth place after a shaky short program to Germany's first pairs gold since 1952.
China's Sui Wenjing and Han Cong, who led after the short program, recovered from a slow start to their free skate to score 153.08 points. But their early bobbles proved costly — they finished with 235.47 points, less than half a point off the top step of the podium.
Meagan Duhamel and Eric Radford added a bronze medal after winning team gold with Canada.
The victory was sweet vindication for Savchenko and Massot, who were stamped the favorites after winning the Grand Prix Final but whose error on a jump in the short program left them playing catch-up.
They caught up and flew right by.
The Ukraine-born Savchenko stuck a huge triple twist lift to open their program, and the couple was perfect on a throw triple flip. They followed with a gorgeous combination and a triple toe that drew gasps from the crowd, and a big cheer from German great Katarina Witt seated in the arena.
When the music stopped, Savchenko lay on the ice gasping for air.
The 34-year-old has followed a long and bumpy road to Olympic glory. She won five world titles with longtime partner Robin Szolkowy, and competed in the Winter Games with Stanislav Morozov early in her career. But it took competing for her second country with her third partner in her fifth Winter Games to finally win an elusive gold medal.
It wasn't assured until the final pair of Evgenia Tarasova and Vladimir Morozov — Russians who happen to be trained by Szolkowy — struggled with the early elements of their program. The moment their scores were read, relegating them to fourth place, the German pair doubled over in tears.
Sui and Han's performance to "Turandot" by Giacomo Puccini would have been good enough for gold at any other Olympics. Like the Germans', the score posted by the Chinese was nearly 20 points better than the previous best, set during the 2010 Vancouver Games.
Ryom Tae Ok and Kim Ju Sik, who were 11th after the short program, put together a season-best free skate to the delight of their North Korean cheering section seated in the upper level.
The couple, who qualified for the games on merit, finished 13th out of 16.
"I was very nervous," Kim said, "but when I heard the crowd cheer all the hardships melted away."
Patriots, Red Sox, Bruins, Celtics and more
Alexa Scimeca-Knierim and Chris Knierim became the first Americans to land a quad twist in an Olympic competition when they opened their free skate with it. The spectacular, four-revolution element is so difficult that only a couple of other pairs were trying it.
The rest of their program didn't go nearly as well.
Knierim fell on both of their triple jumps, Scimeca-Knierim was shaky landing their throw triple flip and the married couple was out of sync on their combination spin.
Still, their Olympics were made when they helped the U.S. win team bronze.