The composition of the present invention is geared towards treating hyperhidrosis or any condition involving and/or promoting excessive sweating, typically involving the whole body, include hyperthyroidism or similar endocrine disorders; endocrine treatment for prostatic cancer or other types of malignant disorder; severe psychiatric disorders; obesity and menopause. The foamable composition of the present invention is suitable for treating palmar hyperhidrosis; axillary hyperhidrosis; plantar hyperhidrosis; hyperhidrosis of the trunk and/or the thighs; and facial hyperhidrosis; and any combination of them consisting of a therapeutic foamable composition including: an active agent, suitable for the treatment or prevention of hyperhidrosis.