Ion channels are molecular pores that facilitate the passage of ions across cell membranes and participate in a range of biological processes, from excitatory signal transmission in the mammalian nervous system to the modulation of swimming behaviour in the protozoan Paramecium. Two particularly important families of ion channels are ionotropic glutamate receptors (GluRs) and potassium channels. GluRs are permeable to Na+, K+ and Ca2+, are gated by glutamate, and have previously been found only in eukaryotes. In contrast, potassium channels are selective for K+, are gated by a range of stimuli, and are found in both prokaryotes and eukaryotes. Here we report the discovery and functional characterization of GluR0 from Synechocystis PCC 6803, which is the first GluR found in a prokaryote. GluR0 binds glutamate, forms potassium-selective channels and is related in amino-acid sequence to both eukaryotic GluRs and potassium channels. On the basis of amino-acid sequence and functional relationships between GluR0 and eukaryotic GluRs, we propose that a prokaryotic GluR was the precursor to eukaryotic GluRs. GluR0 provides evidence for the missing link between potassium channels and GluRs, and we suggest that their ion channels have a similar architecture, that GluRs are tetramers and that the gating mechanisms of GluRs and potassium channels have some essential features in common.