The correct option is C Protection from adverse effects of sun
The porphyrin pigment present in the body of earthworm provides protection against harmful rays (ultraviolet) of sun and thus prevents its adverse effects. So, the correct answer is option D.