Researchers report a new ion detector, MARIO. Using it, they show that changes in the intracellular concentration of free magnesium ions (Mg2+) is critical for the chromosome folding that must occur for cells to divide. The findings provide a new mechanism for chromosome organization.