Every region has eight Gym Leaders. You battle then to get badges.They are strong trainers that give you alot of prize money and a TM. They help you in the newer games.
Badges make your pokemon obey you. Badges make HMs work. You need eight badges to go into the pokemon League.