Blastocladiomycota fungi form motile zoospores that are guided by sensory photoreceptors to areas of optimal light conditions. We showed that the microbial rhodopsin of Blastocladiella emersonii is a rhodopsin-guanylyl cyclase (RhGC), a member of a previously uncharacterized rhodopsin class of light-activated enzymes that generate the second messenger cyclic guanosine monophosphate (cGMP). Upon application of a short light flash, recombinant RhGC converted within 8 ms into a signaling state with blue-shifted absorption from which the dark state recovered within 100 ms. When expressed in Xenopus oocytes, Chinese hamster ovary cells, or mammalian neurons, RhGC generated cGMP in response to green light in a light dose-dependent manner on a subsecond time scale. Thus, we propose RhGC as a versatile tool for the optogenetic analysis of cGMP-dependent signaling processes in cell biology and the neurosciences.