The 2022 Emmys had a Pete Davidson surprise up their sleeves.
Davidson made an unannounced appearance at the ceremony to present the award for Outstanding Comedy Series to "Ted Lasso ."
It marked the first major event for Davidson since splitting with Kim Kardashian on Aug. 5 .
"Ted Lasso" won Comedy Series for the second consecutive year, beating out "Abbott Elementary ," "Barry ," "Curb Your Enthusiasm ," "Hacks ," "The Marvelous Mrs. Maisel ," "Only Murders In the Building " and "What We Do In the Shadows ."
Before he opened the envelope, Davidson gave a shout-out to Emmys host and former "SNL" co-star Kenan Thompson, saying, "The guy's been in the zone for the past 30 years, just making us smile, nothing but net. He's an absolute treasure and I'm honored to call him a friend."
Davidson then joked, "This is just like 'SNL' because Kenan is doing all the work and I'm refusing to say what the writers want."
Momodu Mansaray/Getty Images
(L-R) Christopher Meloni and Mariska Hargitay attend the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Frazer Harrison/Getty Images
Zendaya attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
Jean Smart attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Frazer Harrison/Getty Images
Julia Garner attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Frazer Harrison/Getty Images
(L-R) Chrissy Teigen and John Legend attend the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Frazer Harrison/Getty Images
(L-R) Mark Hampton and Christina Ricci attend the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Frazer Harrison/Getty Images
Anthony Anderson attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Frazer Harrison/Getty Images
Sydney Sweeney attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Frazer Harrison/Getty Images
Paul W. Downs attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Frazer Harrison/Getty Images
Trevor Noah attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
Jeremy Strong attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
(L-R) Jimmy Kimmel and Molly McNearney attend the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
Zedd attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
Issa Rae attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
Kaley Cuoco attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
(L-R) Caitlin Mehner and Danny Strong attend the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Frazer Harrison/Getty Images
Reese Witherspoon attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
Kerry Washington Black attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
Andrew Garfield attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Frazer Harrison/Getty Images
Quinta Brunson attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
Ariana DeBose attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Frazer Harrison/Getty Images
Seth Rogen attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
Will Poulter attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
(L-R) Emily V. Gordon and Kumail Nanjiani attend the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
Ayo Edebiri attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
Sandra Oh attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Frazer Harrison/Getty Images
John Wilson attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Frazer Harrison/Getty Images
Tyler James Williams attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Evans Vestal Ward/NBC via Getty Images
(L-R) Phil Dunster and Brett Goldstein arrive to the 74th Annual Primetime Emmy Awards held at the Microsoft Theater on September 12, 2022.
Trae Patton/NBC via Getty Images
(L-R) Patricia ‘Ms. Pat’ Williams and Mary Lou Belli arrive to the 74th Annual Primetime Emmy Awards held at the Microsoft Theater on September 12, 2022.
Trae Patton/NBC via Getty Images
Kenan Thompson arrives to the 74th Annual Primetime Emmy Awards held at the Microsoft Theater on September 12, 2022.
Trae Patton/NBC via Getty Images
(L-R) Barry Williams, Mike Lookinland, Susan Olsen, Christopher Knight and Eve Plumb arrive to the 74th Annual Primetime Emmy Awards held at the Microsoft Theater on September 12, 2022.
Frazer Harrison/Getty Images
Laverne Cox attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
Holden Chang (R) and guest attend the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Trae Patton/NBC via Getty Images
Ashley Yi arrives to the 74th Annual Primetime Emmy Awards held at the Microsoft Theater on September 12, 2022.
Evans Vestal Ward/NBC via Getty Images
(L-R) Park Hae-soo and Oh Yeong-su arrive to the 74th Annual Primetime Emmy Awards held at the Microsoft Theater on September 12, 2022.
Evans Vestal Ward/NBC via Getty Images
(L-R) Ismaël Cruz Córdova, Markella Kavenagh, and Cynthia Addai-Robinson arrive to the 74th Annual Primetime Emmy Awards held at the Microsoft Theater on September 12, 2022.
Trae Patton/NBC via Getty Images
Hannah Waddingham arrives to the 74th Annual Primetime Emmy Awards held at the Microsoft Theater on September 12, 2022.
Momodu Mansaray/Getty Images
(3rd L-R) Carson Kressley, Michelle Visage, RuPaul and cast attend the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in
CHRIS DELMAS/AFP via Getty Images
US actress Natasha Rothwell arrives for the 74th Emmy Awards at the Microsoft Theater in Los Angeles, California, on September 12, 2022.
Frazer Harrison/Getty Images
Tim Kash attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
(L-R) James Atkinson and Jane Becker attend the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
(L-R) Ballard C. Boyd and Kelsey Boyd attend the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Christopher Polk/NBC via Getty Images
74th ANNUAL PRIMETIME EMMY AWARDS — Pictured: Zuri Hall arrives to the 74th Annual Primetime Emmy Awards held at the Microsoft Theater on September 12, 2022.
Trae Patton/NBC via Getty Images
74th ANNUAL PRIMETIME EMMY AWARDS — Pictured: Shonda Rhimes arrives to the 74th Annual Primetime Emmy Awards held at the Microsoft Theater on September 12, 2022.
Trae Patton/NBC via Getty Images
(L-R) Jeff Waite and Liz Phang arrive to the 74th Annual Primetime Emmy Awards held at the Microsoft Theater on September 12, 2022.
Momodu Mansaray/Getty Images
(L-R) Hiro Murai and Emma Barrie attend the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Momodu Mansaray/Getty Images
Mark Indelicato attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Frazer Harrison/Getty Images
(L-R) Patrick Schumacker, Brittani Nichols, and Justin Halpern attends the 74th Primetime Emmys at Microsoft Theater on September 12, 2022 in Los Angeles, California.
Trae Patton/NBC via Getty Images
Sammi Hanratty arrives to the 74th Annual Primetime Emmy Awards held at the Microsoft Theater on September 12, 2022.
It was a big night for Davidson, who also got to celebrate "Saturday Night Live 's" sixth consecutive win for Variety Sketch Series.
It will be the last opportunity for Davidson to revel in a "SNL" win, however, as he announced his departure from the legendary sketch series in May , joining co-stars Kate McKinnon, Aidy Bryant and Kyle Mooney in leaving "Saturday Night Live" after its 47th season.
2022 Emmys Parties: Star Sightings
Though Davidson is leaving "SNL," he still has major television plans ahead of him.
Davidson is set to star in Peacock's "Bupkis ," based on a fictional version of his own life. Starring, written and executive produced by Davidson -- and co-starring Edie Falco as Pete's mom and Joe Pesci as Pete's grandfather -- the series will "combine grounded storytelling with absurd elements from the unfiltered and completely original worldview for which Pete is well known," according to the streamer.
The 28-year-old actor also stars alongside Kaley Cuoco in the upcoming romantic comedy Meet Cute , which hits Peacock on Sept. 21.
(E! and NBC are both part of the NBCUniversal family.)