A Mg(2+)-binding riboswitch, controls expression of the mgtE gene in response to the presence of magnesium.