The Umbrella singer played a 40-minute set which included singles Rude Boy and Umbrella before headliners Pendulum took to the stage.
The Barbadian singer, who has spent this month on tour throughout the UK, brought a production which included a full live band and pyrotechnic streamers.
She kept on stage chat to a minimum but finished by saying, 'Bangor, I've had so much fun with you guys'.
Following Rihanna, Australian drum 'n' bass act Pendulum played a 50-minute, high-energy set which officially topped off the weekend.
Crowds on the In New Music We Trust stage were entertained by chart-topper Plan B and Canadian dance-noise act Crystal Castles.
Speaking to Newsbeat as he came off stage Plan B, aka Ben Drew, said: "I can't believe there was that many people there. I've done festivals before but that was different. Next level."
The gates opened at midday on the second day and 20,000 music fans saw performances from Paolo Nutini, Pixie Lott, Jason Derulo and Paramore.