Frontman Rivers Cuomo performs with headliner Weezer.

What a day. What a night. What a festival.

The two-day Maha Music Festival was capped by a full-on rock ‘n’ roll set from Weezer, a beloved band that made a perfect finale for two days of music, sun, fun and feeling good.

Easily the biggest band to headline the festival, Weezer came out hard with a barrage of hits.

The 24-year-old hit “Buddy Holly” led the salvo, which continued to land shots with “Beverly Hills,” “Perfect Situation,” “Hash Pipe” and “Undone (The Sweater Song).”

And the gathered throng exploded, singing every word to “My Name Is Jonas” and screaming when frontman Rivers Cuomo thrust his hands in the air.

The finale from the Grammy-winning, hit-making, decades-spanning rockers was a fantastic way to close out two days full of all kinds of music.

Variety is the lifeblood of music festivals.

And Maha Music Festival’s veins are full and pumping furiously.

On Saturday, Maha Music Festival showed off the diversity that makes big-time rock festivals shine.

The day’s lineup featured a diverse group: jazz from Mesonjixx, garage rock from David Nance Band, R&B from Ravyn Lenae, indie rock from Hop Along, crazy noise rock from Tune-Yards and straight-out rock ‘n’ roll from Weezer.

The final part of the two-day Maha Music Festival was packed. Total attendance hit almost 8,000 for the day, putting it in the top-attended iterations of the festival.

And it was all thanks to that variety and a big push from Weezer, easily the biggest band to ever play the festival.

A fiery set from The Kills was a perfect setup for the evening’s finale: a one-two punch of indie rock from Father John Misty and power-pop from Weezer.

Father John Misty is a sought-after performer who played Red Rocks last week and is headed soon to the massive Austin City Limits Festival.

At Maha, he showcased his new album, “God’s Favorite Customer,” while devoted fans screamed for more.

The first portion of the set from the singer-songwriter — whose real name is Josh Tillman — was a bit sleepy till he and his eight-member band turned things up for a rambling country version of “I’m Writing a Novel” and a cranked-up “Date Night” that featured Tillman standing at the lip of the stage and inciting the crowd to groove with him.

On Saturday, the bright sound of his songs was often a major contrast with his lyrics.

With trumpets blaring and guitars ringing and Tillman’s voice howling as he strummed, the set closed with the triumphant “I Love You, Honeybear.”

“Thank you all for coming. See you next time!” Tillman said.

Then came Weezer, who played an almost 90-minute set full of hits and favorites including “El Scorcho.”

It was a different scene from 10 years ago, when the festival’s first-ever headliner, Dashboard Confessional, played a cover of the same song to a much smaller crowd on the riverfront.

Fast forward a decade, and Weezer played the tune to thousands of fans screaming every word to cap off a big, two-day music festival.

Saturday’s scene was the kind of thing the festival’s founders only dreamed about.

And now it’s here.