Most superheroes keep their identities a secret by wearing masks or helmets. This protects the superheroes' friends and family from being hurt by villains. Also, because superheroes do not fight within the regulations of the law like police officers do, they would have to be arrested for vigilantism if they revealed their identities. 