In natural and engineered systems, cis-RNA regulatory elements such as riboswitches are typically found within untranslated regions rather than within the protein coding sequences of genes. However, RNA sequences with important regulatory roles can exist within translated regions. Here, we present a synthetic riboswitch that is encoded within the translated region of a gene and represses Escherichia coli gene expression greater than 25-fold in the presence of a small-molecule ligand. The ability to encode riboswitches within translated regions as well as untranslated regions provides additional opportunities for creating new genetic control elements. Furthermore, evidence that a riboswitch can function in the translated region of a gene suggests that future efforts to identify natural riboswitches should consider this possibility.