Busy Philipps threw herself an epic 40th birthday celebration in Mexico over the weekend.

Though she’s been married to screenwriter Marc Silverstein since 2007, the actress and TV host decided to hold a wedding-style bash at the popular wedding venue Flora’s Farms in San Jose del Cabo. She even wore a flowy white dress for the occasion.

“I decided I wanted to throw myself a destination wedding (to myself) for my 40th at one of my favorite places in the world,” Philipps wrote on Instagram.

She added, “This was, without question, one of the greatest, most fun, and beautiful nights of my life. Thank you thank you thank you to all of my friends and family who made this weekend the best of all time.”

Among the celebrity guests who jetted to Cabo for the affair were Elizabeth Banks, Colin Hanks, and "Girls" writer Jenni Konner.

There was food, drinking, dancing and even a surprise flash mob of Philipps lookalikes, all dressed in her signature "Mr. Nightgown" and pink-haired wigs.

“I’m obsessed with flash mobs!” she said in her Instagram Story, calling it the “best surprise of all time!”

Philipps’ actual birthday is Tuesday, June 25.

View this post on Instagram

I'd always wanted to do this.

A post shared by Busy Philipps (@busyphilipps) on Jun 23, 2019 at 9:32pm PDT

View this post on Instagram

American tourist in #Mexico #2Busy2B40

A post shared by Elizabeth Banks (@elizabethbanks) on Jun 22, 2019 at 4:34pm PDT

View this post on Instagram

Serving looks! #2Busy2B40

A post shared by Caissie St.Onge (@instacais) on Jun 22, 2019 at 8:00pm PDT

View this post on Instagram

Birthday girl & her man. 💜 #2Busy2B40

A post shared by Caissie St.Onge (@instacais) on Jun 22, 2019 at 10:03pm PDT

View this post on Instagram

Colin is a total maraca artist! #2Busy2B40

A post shared by Caissie St.Onge (@instacais) on Jun 22, 2019 at 11:13pm PDT