Katy Perry performed her new single Dark Horse at the 56th Grammy Awards on Sunday.

The singer opened her performance wearing a purple cape while singing in what appeared to be a large crystal ball.

Eventually she was joined by rapper Juicy J, who performed his verse wearing sunglasses. As Juicy J rapped, Perry also danced on a witches' broom.

The song appears on Perry's fourth studio album, which was released last October.

The album's lead single Roar shot to No. 1 on Billboard when it was released that September and overthrew Robin Thicke's Blurred Lines from the top spot.

The whole album also showcased a more mature side of Perry.

Katy Perry 2014 Tour Dates Announced

"It's the 28-year-old version of me. Last record, which was very fun, and kind of like a cartoon character. This record is a lot more stripped down," she told Elvis Duran And The Morning Show of New York City's Z-100. "It's the essential oils of me represented."

She also explained the meaning behind the album's unique title.

"Prism is what colors are. That's why I called [the album] Prism. For a minute I thought I was going to do a dark record, but then I let the light in, and that's what a Prism does."

Katy Perry On John Mayer: 'There's No Rush,' She Tells GQ

This year's Grammys were hosted by rapper LL Cool J, who also held the same title at the 2013 award show.

"Just being a part of it is great," he told Us Weekly. "I mean, winning is always going to be the best. I mean, nothing tops winning! But it's always fun being involved and it's fun hosting. This is a good time."