Members of the cryptochrome/photolyase family (CPF) are widely distributed throughout all kingdoms, and encode photosensitive proteins that typically show either photoreceptor or DNA repair activity. Animal and plant cryptochromes have lost DNA repair activity and now perform specialized photoperceptory functions, for example, plant cryptochromes regulate growth and circadian rhythms, whereas mammalian and insect cryptochromes act as transcriptional repressors that control the circadian clock. However, the functional differentiation between photolyases and cryptochromes is now being questioned. Here, we show that the PtCPF1 protein from the marine diatom Phaeodactylum tricornutum shows 6-4 photoproduct repair activity and can act as a transcriptional repressor of the circadian clock in a heterologous mammalian cell system. Conversely, it seems to have a wide role in blue-light-regulated gene expression in diatoms. The protein might therefore represent a missing link in the evolution of CPFs, and act as a novel ultraviolet/blue light sensor in marine environments.