We investigate the relaxation dynamics of melanin model constituents including monomers, dimers, and tetramers, upon excitation, using state-of-the-art, time-dependent, density functional theory calculations. The results explain the ability of these molecules to transform photon energy into thermal energy in a remarkably short timescale of approximately 100 fs. We find that after electronic excitation by light absorption, ultrafast energy conversion takes place through two novel mechanisms: proton transfer on a timescale of 110 fs and state mixing upon oligomerization on a timescale of <50 fs. These results are in good agreement with available experiments and help elucidate melanin's role in photoprotection against ultraviolet radiation.