The invention relates to the use of melatonin, either alone or in combination with at least one compound selected from the group consisting of L-arginine, a physiologically acceptable salt thereof, one or more other physiologically acceptable compounds associated with the synthesis of nitric oxide and mixtures thereof, for the manufacture of a medicament for the therapeutic treatment, prophylactic treatment and/or prevention of postoperative infectious and/or non-infections complications induced by surgical interventions wherein the infectious complications may be pneumonia, wound infection (wound dehiscence), intra-abdominal abscess, and urinary tract infections (UTI) or wherein the non-infectious complication may be anastomotic leak, a pharmaceutical formulation comprising melatonin and at least one compound selected from the group consisting of L-arginine, a physiologically acceptable salt thereof, one or more other physiologically acceptable compounds associated with the synthesis of nitric oxide and mixtures thereof and a method for the therapeutic and/or prophylactic treatment of postoperative infectious and/or non-infectious complications induced by surgical interventions.