Photoperiod plays an essential role in the synchronization of metabolism, physiology, and behavior to the cyclic variations of the environment. In vertebrates, information is relayed by the pineal cells and translated into the nocturnal production of melatonin. The duration of this signal corresponds to the duration of the night. In fish, the pinealocytes are true photoreceptors in which the amplitude of the nocturnal surge is modulated by temperature in a species-dependent manner. Thus, the daily and annual variations in the amplitude and duration of the nocturnal melatonin signal provide information on daily and calendar time. Both light and temperature act on the activity of the penultimate enzyme in the melatonin biosynthesis pathway, the arylalkylamine N-acetyltransferase (serotonin → N-acetylserotonin). Although the mechanisms of the light/dark regulation of melatonin secretion are quite well understood, those of temperature remain unelucidated. More generally, the mechanisms of thermoreception are unknown in ectotherms. Here we provide the first evidence that two thermotransient receptor potential (TRP) channels, TRPV1 and TRPV4, are expressed in the pineal photoreceptor cells of a teleost fish, in which they modulate melatonin secretion in vitro. The effects are temperature dependent, at least for TRPV1. Our data support the idea that the pineal of fish is involved in thermoregulation and that the pineal photoreceptors are also thermoreceptors. In other nervous and nonnervous tissues, TRPV1 and TRPV4 display a ubiquitous but quantitatively variable distribution. These results are a fundamental step in the elucidation of the mechanisms of temperature transduction in fish.