Mange is caused by several species on skin mites. Your dog has mites living on its skin naturally and they usually cause no harm to your dog. However when mites grow out of control they can cause mange.
A young pup reaching around for a lovely back scratch
Different species of mites cause different types of mange. Canine scabies (Sarcoptic mange) is caused by Sarcoptes scabei.