The present invention relates to the use of a composition comprising melatonin or a derivative thereof in a proportion of 2‑5% to 5% w/v for the production of a pharmaceutical composition for treating and/or preventing mucositis. The mucositis in question is preferably that caused by radiotherapy and/or chemotherapy and specific reference is made, preferably, to oral mucositis.