Magnesium ions are required by Bacillus subtilis ribonuclease P RNA for both binding and cleaving precursor tRNAAsp.