GO:0030186: melatonin metabolic process
The chemical reactions and pathways involving melatonin (N-acetyl-5-methoxytryptamine).