The Justice League actor rang in the big 4-0 at the W Hollywood hotel in Los Angeles, where the tribute band Steel Panther performed covers of '80s rock hits by Bon Jovi, Metallica and more. The birthday boy celebrated with Vergara's Modern Family costar Jesse Tyler Ferguson and his husband, Justin Mikita, as well as singer Fergie, Pee-wee Herman star Paul Reubens and former NBA pro Dennis Rodman.
Vergara, 44, shared a picture with her husband (who rocked a vintage Guns N' Roses T-shirt) on Instagram, writing, "Ready to partyyyyyy #joe's40," alongside several guitar emojis.
At one point during the party, Manganiello, who officially turned 40 on December 28, joined Steel Panther on stage and sang along to Guns N' Roses' "Sweet Child O' Mine" and the Kinks' "You Really Got Me." Manganiello and Vergara, who wed in November 2015, both documented some of the fun-filled performances on their respective Instagram accounts.
The Modern Family star also shared a picture of the Magic Mike actor's Van Halen–inspired birthday cake, which was in the shape of a red electric guitar.
"Thanks to everyone that made it out tonight!" Manganiello later wrote on Instagram. "And thank you @djhapa & @steelpantherkicksass for bringing down the house!!! #JOECHELLA 40 @whollywoodhotel."
Sign up now for the Us Weekly newsletter to get breaking celebrity news, hot pics and more delivered straight to your inbox!