It was supposed to be Veep’s victory lap. But instead, Sunday night became a shocker in the comedy categories as Fleabag, which aired its second and final season this year, upset perennial favorite Veep, also in its last season, in several categories including best comedy series and best actress in a comedy—an award Julia Louis-Dreyfus has won six times. Had Louis-Dreyfus won Sunday night, she would have broken Cloris Leachman’s record for solo wins. A highlight reel for the series, played midway through the evening, drove home both the show’s legacy and the acerbic brilliance Louis-Dreyfus has consistently brought to the role of Selina Meyer throughout its run. It all felt a little valedictory.

But Fleabag’s momentum picked up considerably in its sophomore season. The first installment of Phoebe Waller-Bridge’s comedy garnered no nominations, but its latest scored 11—two of which it won during the Creative Arts Emmys. Like Veep, Fleabag will also not continue past this year’s entry—making its run this season all the more vital. In this light, Fleabag’s surprise sweep Sunday night made sense: Veep has already collected its kudos from the TV Academy over the years, whereas for Fleabag, this year’s gala was the first and only chance. It netted six in all.

In accepting awards for writing and acting on Fleabag, Waller-Bridge emphasized how difficult both acts are—and as she accepted the gold statuette for outstanding comedy series, Waller-Bridge thanked her family, including her sister who she noted writes all of the show’s music. She also offered one more important shout-out: “Season two would not have happened or exploded in the way that it did had it not been for Andrew Scott, who came into our Fleabag world like a whirlwind and gave a performance of such depth and complexity that just elevated the whole thing.” Indeed, Waller-Bridge and Scott staged one of the best “will they, won’t they” relationships in TV histories in just one season—but it’s the intricate, polished whole of Fleabag season two that likely caught voters’ attention, as the wide swath of awards seems to demonstrate.

What’s most striking about Fleabag’s victory is the degree to which it upsets the expectations coming into Sunday night. Amazon has been relentless in promoting The Marvelous Mrs. Maisel this season—an investment that seemed to pay off when Maisel brought home those six statuettes at the Creative Arts Emmys. Its campaign for Fleabag, on the other hand, has been far quieter. And though Maisel netted supporting wins for Alex Borstein and Tony Shalhoub, it was Fleabag that stunned on Sunday night’s big show. And so, in the end, Waller-Bridge wrapped up her emotional speech with three words: “Fleabag says thanks.”

More Great Stories from Vanity Fair

— Our cover story: Lupita Nyong’o on Us, Black Panther, and much more

— Five appalling stories from the set of The Wizard of Oz

— Hugh Grant’s very English comeback

— How’s Joker? Our critic says Joaquin Phoenix towers in a deeply troubling film

— Lori Loughlin finally gets a win

Looking for more? Sign up for our daily Hollywood newsletter and never miss a story.