After the recent discovery of bacterial riboswitches, synthetic riboswitches have been engineered by using natural and artificial RNA aptamers. In contrast to natural riboswitches, the majority of synthetic riboswitches in bacteria reported to date are ON switches that activate gene expression in response to the aptamer ligand. In this study, we adopted a mechanism-guided approach to design libraries predisposed to contain OFF riboswitches that respond to thiamine pyrophosphate (TPP). The first library design exploited a pseudo-Shine-Dalgarno (SD) sequence located near the 3'-end of the TPP aptamer, which would be less accessible to the ribosome when the aptamer is bound to TPP. In the second library, an SD sequence was strategically placed in the aptamer's P1 stem, which is stabilized upon ligand binding. OFF riboswitches were obtained by dual genetic selection of these libraries. The results underscore the importance of effective library design to achieve desired riboswitch functions.