Our results suggest for the first time that melatonin alleviates tau-related pathologies through upregulation of miR-504-3p expression by targeting the p39/CDK5 axis and provide novel insights into AD treatment strategies. The gene discussed is MAPT; the disease is Alzheimer disease.