The GEMM riboswitch is conserved in diverse bacteria and recognizes the second messenger c-di-GMP which mediates many processes, such as the transition between sedentary and motile behavior. The structure of the GEMM riboswitch with ligand now elucidates ligand recognition and specificity.