Becoming Super Sonic is one of the most iconic moments in the series, and the key is collecting all seven Chaos Emeralds.
How you get them depends on the game. In the earlier titles and the Sonic Rush series, you earn each Emerald by completing a special minigame hidden somewhere in a stage — keep an eye out for a giant golden ring or a mysterious red sphere. Finish the minigame and the Emerald is yours. In games like Sonic Adventure, you instead earn Emeralds by clearing stages or reaching certain story moments.
Once you have all seven, you can usually transform into Super Sonic or one of his other powered-up forms. Note that the rules vary a little between games: in Sonic Advance, for example, you can only go Super in the extra zone. But the constant across the series is the seven Chaos Emeralds — and unlike the comics, you don't need a hundred rings to make the change in the games.