They are battled to make sure that a trainer is ready for the Pokémon League. If a trainer beats a Gym Leader in battle, they earn the Gym's respective badge. Reborn has 18 gym leaders, one for each type, along with various backup leaders.