Coenzyme B(12) has a key role in various enzymatic reactions and controls expression of bacterial genes through riboswitches. Here we report the crystal structure of the Symbiobacterium thermophilum B(12) riboswitch bound to its ligand adenosylcobalamin. The riboswitch forms a unique junctional structure with a large ligand-binding pocket tailored for specific recognition of the adenosyl moiety and flanked by structural elements that stabilize the regulatory region and enable control of gene expression.