Riboswitches are mRNA regions that regulate the expression of genes in response to various cellular metabolites. These RNA sequences, typically situated in the untranslated regions of mRNAs, possess complex structures that dictate highly specific binding to certain ligands, such as nucleobases, coenzymes, amino acids, and sugars, without protein assistance. Depending on the presence of the ligand, metabolite-binding domains of riboswitches can adopt two alternative conformations, which define the conformations of the adjacent sequences involved in the regulation of gene expression. In order to understand in detail the nature of riboswitch–ligand interactions and the molecular basis of riboswitch-based gene expression control, it is necessary to determine the three-dimensional structures of riboswitch–ligand complexes. This chapter outlines the techniques that are employed to prepare riboswitch–ligand complexes for structure determination using X-ray crystallography. The chapter describes the principles of construct design, in vitro transcription, RNA purification, complex formation, and crystallization screening utilized during the successful crystallization of several riboswitches.