LAS VEGAS — Conor McGregor stopped Donald Cerrone with a head kick and punches 40 seconds into the first round at UFC 246 on Saturday night, announcing his return to mixed martial arts with his first victory since 2016.

The Irish former two-division champion returned from a three-year stretch of inactivity and outside-the-cage troubles with a performance that echoed his greatest fights during his unparalleled rise.

McGregor (22-4) floored Cerrone (36-14) only 20 seconds into the bout with a perfectly placed left kick to the head, and he mercilessly finished on the ground to the delight of a sellout crowd at T-Mobile Arena.

McGregor's hand hadn't been raised in victory since November 2016, when he stopped lightweight Eddie Alvarez to become the first fighter in UFC history to hold two championship belts simultaneously. With his fame and fortune multiplying, McGregor fought only his boxing match with Floyd Mayweather in 2017, and he lost a one-sided UFC bout to lightweight champion Khabib Nurmagomedov in late 2018.

After a year of inactivity and trouble outside the cage, McGregor vowed to return to elite form in this bout against a fellow UFC veteran and stoppage specialist. This dramatic victory over Cerrone indicated he's on his way, and McGregor has vowed to fight multiple times in 2020.

Cerrone is the winningest fighter in UFC history with 23 victories, a mark that reflects both his durability and commitment to an uncommonly busy schedule. Cerrone, who also holds the UFC record with 16 stoppage wins, had fought a whopping 11 times since McGregor's win over Alvarez, and he was in the cage for the 15th time since he lost his only UFC title shot in December 2015.

Subscribe to Newsday’s sports newsletter Receive stories, photos and videos about your favorite New York teams plus national sports news and events. By clicking Sign up, you agree to our privacy policy.

But Cerrone's last two fights were stopped when he took too much damage, and he couldn't block McGregor's decisive kick or recover from the punishment on the ground.

McGregor believes he can recapture the fearsome form he showed during his meteoric rise to unprecedented MMA success. He won 15 consecutive fights during a five-year run from low-profile shows in Dublin to the world's biggest MMA events, stopping five straight elite UFC opponents with punches on the way up.

McGregor walked to the cage with the Irish flag wrapped around his shoulders. The bearded fighters touched gloves beforehand in an extension of this bout's unfailing sportsmanship — not always a hallmark of McGregor's previous bouts.

After the referee stopped the bout, McGregor peeled away briefly to celebrate, but quickly returned to comfort his disoriented opponent. When Cerrone's grandmother, Jerry, entered the cage after the fight to hug her grandson, McGregor also hugged Jerry and got a kiss on the cheek.

Even after his prolonged absence — or maybe because of it — McGregor's return is expected to be a huge seller on pay-per-view. An eager sellout Vegas crowd showed up in person, with celebrities including Matthew McConaughey, Jeremy Renner and Dave Bautista, along with NFL stars Tom Brady, Christian McCaffrey, Baker Mayfield, Myles Garrett and Jon Gruden.

Former bantamweight champion Holly Holm beat Raquel Pennington by unanimous decision in the penultimate bout of UFC 246. The 38-year-old Holm (13-5) had lost five of her seven fights since she memorably knocked out Ronda Rousey in November 2015.

On the undercard, 37-year-old flyweight Roxanne Modafferi pulled off one of the biggest upsets in recent UFC history with a one-sided decision victory over previously unbeaten 21-year-old Maycee Barber, the UFC's top 125-pound prospect.

Barber (8-1) injured her left knee during the bout, but Modafferi (24-16) was already dominating with the superior jiu-jitsu she has been practicing for Barber's entire life. Modafferi was the biggest betting underdog on the UFC 246 card, facing 10-to-1 odds at some sports books.

Aleksei Oleinik, a 42-year-old heavyweight who made his pro debut in 1996, also beat Maurice Greene by submission in the second round.