The pineal gland has evolved from a photoreceptive organ in fish to a neuroendocrine organ in mammals. This study integrated multiple daytime singleâcell RNAâseq datasets from the pineal glands of zebrafish, rats, and monkeys, providing a detailed examination of the evolutionary transition at singleâcell resolution. We identified key factors responsible for the anatomical and functional transformation of the pineal gland. We retrieved and integrated daytime singleâcell transcriptomic datasets from the pineal glands of zebrafish, rats, and monkeys, resulting in a total of 22â431 cells after rigorous quality filtering. Comparative analysis was then conducted to elucidate the evolution of pineal cells, their photosensitivity, their role in melatonin production, and the signaling processes within the glands of these species. Our analysis identified distinct cellular compositions of the pineal gland in zebrafish, rats, and monkeys. Zebrafish photoreceptors exhibited comprehensive phototransduction gene expression, while specific genes, including transducin (Gngt1, Gnb3, and Gngt2) and phosducin (Pdc), were consistently present in mammalian pinealocytes. We found transcriptional similarities between the pineal gland and retina, underscoring shared evolutionary and functional pathways. Zebrafish displayed unique lightâresponsive circadian gene activity compared to rats and monkeys. Key ligandâreceptor interactions were identified, especially involving MDK and PTN, influencing melatonin synthesis across species. Furthermore, we observed speciesâspecific GPCR (G proteinâcoupled receptors) expressions related to melatonin synthesis and their alignment with retinal expressions. Our findings also highlighted specific transcription factors (TFs) and regulatory networks associated with pineal gland evolution and function. Our study provides a detailed analysis of the pineal gland's evolution from fish to mammals. We identified key transcriptional changes and controls that highlight the gland's functional diversity. Notably, we found significant ligandâreceptor interactions influencing melatonin synthesis and demonstrated parallels between pineal and retinal expressions. These insights enhance our understanding of the pineal gland's role in phototransduction, melatonin production, and circadian rhythms in vertebrates.