Melatonin prevents the formation of MAMs via the MR-ERK1/2-FoxO1-IP3R1 pathway, thereby alleviating the development of MT-induced liver injury. Here, FOXO1 is linked to cancer.