Leonardo DiCaprio parties with Justin Bieber, Sofía Vergara, Tobey Maguire after F1 Vegas Grand Prix

Leonardo DiCaprio parties with Justin Bieber, Sofía Vergara, Tobey Maguire after F1 Vegas Grand Prix

Leonardo DiCaprio, Justin Bieber and Sofía Vergara were among just a few of the A-list celebrities who jetted to Las Vegas over the weekend for the Formula 1 Grand Prix.

All three were spotted partying at a starry soirée Saturday night, alongside a host of other stars, like Tobey Maguire, Casey Affleck, Brooklyn Beckham and James Harden.

The bash – held at the Sin City outpost of popular Los Angeles haunt Delilah – also played host to Jon Hamm, Tyga, Nina Dobrev, Odell Beckham Jr., Zach Braff, Corey Gamble, Crystal Kung Minkoff, Karlie Kloss and Quest Love, who was on the DJ decks.

DiCaprio, who was spotted walking through the swanky Wynn Hotel with a pal earlier in the day, seemed to have skipped the race, despite counting seven-time world champion Lewis Hamilton as a friend.

Instead, the “Titanic” star, 49, headed straight to the star-studded afterparty.

Justin Bieber was also seen partying at Delilah after waving the checkered flag at the end of the race.Wynn at Delilah Las Vegas DiCaprio wasn’t seen at the race itself, but partied into the early hours of the morning at the afterparty. SplashNews.com

Meanwhile, newly-single Vergara, 51, was seen taking in the race from the Qatar Airways suite before making a stealthy exit and heading to Delilah.

Elsewhere in the VIP paddock club, Kelsea Ballerini and Chase Stokes packed on the PDA while Rihanna and A$AP Rocky took in the race from Puma’s hospitality area.

The “Umbrella” hitmaker, 35, later made a pit stop in the Ferrari garage, where she was seen watching the race with her Ambush shades on.

Newly-single Sofía Vergara partied at the bash after watching the race in a VIP area.Wynn at Delilah Las Vegas Tobey Maguire kept a low profile in a black cap while Quest Love hit the DJ decks.Wynn at Delilah Las Vegas

She completed her look with a six-figure custom Jacob & Co. watch, which she wore around her ankle.

The “Diamonds” singer highlighted the the $400,000 18-karat white gold piece by wearing a pricey pair of black Balenciaga pantaleggings underneath the dazzling accessory.

Her 35-year-old rapper beau – who launched his Puma x F1 collection Friday night – also cut a stylish figure with a diamond necklace around his neck.

Rihanna was shining bright like a diamond with a pricey piece of jewelry around her ankle.Formula 1 via Getty Images

Across the strip, Kylie Minogue dazzled guests at the Alpine Formula 1 team’s afterparty, held at Voltaire in the Venetian Las Vegas.

Cara Delevingne, who sat front and center for the show, was visibly in awe of the 55-year-old singer’s sexy performance, which included hits like “Padam Padam” and “Spinning Around.”

Ben Affleck and Jennifer Lopez were also on hand to kick off the F1 festivities, hosting a top-secret poker game attended by Hamm and his wife, Anna Osceola, Jimmy Kimmel, Colton Underwood, James Marsden, Maguire and Delevingne.

Jennifer Lopez and Ben Affleck also jetted into Vegas to host a secret poker tournament. Getty Images

The tournament, which was held at Lavo in The Venetian Resort Las Vegas on Friday, benefited Affleck’s non-profit Eastern Congo Initiative, which he founded in 2009.

Next door, David Beckham’s eldest son, who previously came under fire for his cooking videos, was seen chatting to multiple Michelin star chef Tetsuya Wakuda.

Brooklyn dined with his wife, Nicola Peltz, at the Japanese Master of Cuisine’s Vegas restaurant, Wakuda.