[Photo by: Robert DeLeo/Twitter]

Johnny Depp joined Stone Temple Pilots onstage last night for a performance in Santa Clarita, California.

Read more: Johnny Depp might be joining Marilyn Manson’s band

Depp, who plays the guitar, joined the rock band in their performance of “Sex Type Thing” and a cover of MC5’s “Kick Out The Jams." MC5’s Wayne Kramer also joined in during the latter.

The actor has become good friends with the band as he plays with bassist Robert DeLeo in their supergroup Hollywood Vampires. The group, who formed in 2015, also consists of Alice Cooper, Joe Perry, Guns N' Roses bassist Duff McKagan and drummer Matt Sorum.

A few days ago, DeLeo posted a photo of the band with Depp to his Twitter captioned: "Had a dear friend come by yesterday for the last @STPBand rehearsal," so Depp's cameo seemed to have been planned.

Watch the performance below:

Depp has been working in the music industry a lot lately, collaborating with Marilyn Manson on various videos and projects. Depp most recently made appearances in Manson's "SAY10" and "KILL4ME" videos from his current album Heaven Upside Down.

Manson took to Twitter to say that "Johnny Depp is considering a position on guitar."

Did you enjoy Johnny Depp's performance with Stone Temple Pilots? Let us know in the comments!

Watch more: 10 essential songs from the ‘90s