Adverse events were mostly mild; serious adverse events were not thought to be related to the study drug.CONCLUSIONS: Afamelanotide had an acceptable side-effect and adverse-event profile and was associated with an increased duration of sun exposure without pain and improved quality of life in patients with erythropoietic protoporphyria. (Funded by Clinuvel Pharmaceuticals and others; ClinicalTrials.gov numbers, NCT01605136 and NCT00979745.).