Miley Cyrus revealed how excited she was to have a legend like Madonna join her on stage for her MTV Unplugged performance.

"I wanted to have someone here that wasn't the obvious and something that was different than just being on my record, something that people wouldn't really expect," she told MTV News.

"And even I didn't expect Madonna to be necessarily down to do something like Unplugged with me... I grew up listening to Madonna and a lot of what she represented for me is what I try to represent to girls now. Not being afraid of sexuality and really being who you want to be and doing what you want to do."

PHOTOS: Miley Cyrus Through The Years

The 21-year-old went on to compare her recent song We Can't Stop with Madonna's 2000 hit Don't Tell Me and said both tunes have a similar message. Cyrus and Madonna performed a mash-up of the songs on the Unplugged segment.

"That was pretty f--king cool, you guys," Cyrus told the audience after the performance. "It sounds super-lame, but as a pop star it's pretty cool performing with Madonna...Today was one of those days that it was really easy to get out of bed, put on a bikini and sing with Madonna."

Aside from her performance with Madonna, Cyrus also sang tracks from Bangerz, her fourth studio album released last October.

Miley Cyrus: MTV Unplugged will air on Wednesday night at 9 p.m.