It was Nicki Minaj’s turn to shock at the 2014 MTV Video Music Awards.

2014 VMA Moments: Nicki Minaj, Ariana Grande, Taylor Swift and More!

The opening act had 21-year-old breakout singer Ariana Grande, Brit-soul belter Jesse J and Minaj singing a "Break Free," "Anaconda," and "Bang Bang" medley. After her raunchy rendition of "Anaconda" (reminiscent of Miley Cyrus' twerking), Nicki suffered a wardrobe malfunction!

She rushed backstage to change mid-way through the performance, and didn't have time to zip up her dress. Instead, she had to hold the dress together herself to avoid an embarrassing nip slip! 

Watch the video.

Taylor Swift pumped up the crowd with her slick '80s pop throwback, "Shake It Off.”

Watch the video! 

There was also a brief tribute to the late Robin Williams. Watch!

As for winners, Miley Cyrus took home the Video of the Year for “Wrecking Ball," while Katy Perry won the Best Female Video award for "Dark Horse.”

Ed Sheeran won for Best Male Video. Grande won for Best Pop Video for "Problem.” Fifth Harmony won the award for Artist to Watch.

Click here for a complete list of winners.