A hard lump on the leg hurts when touching it may be related to folliculitis, boils and epidermal cysts, etc. It is recommended to take general treatment, medication, surgery and other ways to improve. 1. Folliculitis: a hard lump on the leg hurts when touched is considered to be triggered by folliculitis, patients should pay attention to local hygiene, for bacterial infections patients need to follow the doctor’s prescription of topical antibiotic drugs to help sterilize, such as clindamycin, mupirocin, etc.; for fungal infections patients need to follow the doctor’s prescription of topical antifungal drugs, such as econazole, ketoconazole, etc., to promote recovery. 2. Boils: a hard lump on the leg that hurts to touch may be caused by boils, it is recommended that the patient rest, can follow the doctor’s instructions for external ichthyol ointment, mupirocin ointment and other drugs to help sterilize, reduce swelling. If necessary, oral antibiotics. 3. Epidermoid cysts: there is a hard lump on the leg that hurts to touch may also be caused by epidermoid cysts, the disease is generally based on surgical treatment. For smaller cysts, surgical excision can be taken to remove the cyst directly. Ointment cysts with obvious fluid accumulation, pus, need to take incision and drainage for treatment. There are more reasons why a hard lump on the leg hurts to touch, so patients are advised to consult a doctor for examination to clarify the cause of the disease, so as not to delay the condition.