Stars converged on the Super Bowl both on and off the field on Sunday, with Britney Spears and Mark Wahlberg among the celebrities who watched the game and an elaborate halftime show by Katy Perry.

Wahlberg, a Boston native, was pulling for a victory by the New England Patriots — and an invite to their after-party.

Actors Chris Evans, a Patriots fan, and Seattle Seahawks fan Chris Pratt continued their rivalry in the stands; each wore their respective team’s gear in a picture posted online by Pratt’s wife Anna Faris.

Mariska Hargitay, comedians Kevin Hart and Will Ferrell, and rapper Kanye West and his wife Kim Kardashian were among other stars at the game.

The stars were treated to an elaborate halftime show by Katy Perry, Lenny Kravitz and Missy Elliot at halftime. Perry’s extravaganza featured giant palm trees, bikini-clad dancers and fireworks.

The game capped several days of parties and events hosted by major stars, including Oscar winner Jamie Foxx, Drake and Wahlberg, who was the celebrity host of a charity event on the eve of the game.

West performed alongside Rihanna at a party thrown by DirecTV on Saturday night where guests included Kardashian, John Legend and his wife Chrissy Teigen. Kardashian posted a photo of the foursome dining at a Waffle House restaurant after the party.

Legend sang “America the Beautiful” before kickoff. Teigen kissed her husband and snapped pictures of him before he took his seat at his piano.

Some famous attendees didn’t come to root for a particular team.

Spears didn’t announce her preferred team, and neither did Former Secretary of State Condoleezza Rice, who said she just wanted to enjoy a good game.

One star who was at the gates of the game but didn’t get to go inside was country singer Dierks Bentley. He performed at an official tailgate before kickoff, but had to leave to fly to a taping of Ellen DeGeneres’ show in Los Angeles.

“Ellen owes me big time,” Bentley joked Sunday. “She better pull through with a good interview, a lot of couch time. I want Justin Bieber-style couch time.”

Bentley said he wasn’t all that upset about missing the game: He’s an Arizona Cardinals fan, and they haven’t been to the Super Bowl since 2009.

Join our Newsletter for the latest news right to your inbox