The present invention relates to the use of a composition comprising melatonin or a derivative thereof at a proportion of 2.5% to 5% w/v for preparing a pharmaceutical composition for treating and/or preventing mucositis. The mucositis is preferably caused by radiotherapy and/or chemotherapy and preferably refers to oral mucositis.