A gene for a slowly activating, voltage-dependent K+-selective ion channel was designed and synthesized on the basis of its known amino acid sequence. The synthetic gene was cloned into a transcription vector, and in vitro transcribed mRNA was injected into Xenopus oocytes for electrophysiological assay of the resulting ionic currents. The currents are voltage-dependent and highly selective for K+ over Na+. The selectivity among monovalent cations follows a familiar K+-channel sequence: K+ > Rb+ > NH4+ > Cs+ >> Na+, Li+. The currents are inhibited by Ba2+, Cs+, and tetraethylammonium (TEA), common pore blockers of K+ channels. Open-channel blockade by Cs+ (but not by Ba2+ or TEA) depends on applied voltage. The major inhibitory effect of Ba2+ is to alter channel gating by favoring the closed state; this effect is specific for Ba2+ and is relieved by external K+. The results argue that although the polypeptide expressed is very small for a eukaryotic ion channel, 130 amino acid residues in length, the ionic currents observed are indeed mediated by a genuine K+-channel protein. This synthetic gene is therefore well suited for a molecular analysis of the basic mechanisms of K+-channel function.