There are two main types of hyperhidrosis: primary and secondary. Primary hyperhidrosis is the most common type and is often idiopathic, meaning its exact cause is unknown. It is believed to be related to overactivity of the sweat glands. Secondary hyperhidrosis, on the other hand, is caused by underlying medical conditions such as thyroid disorders, diabetes, or infections.