Molecular crowding regulates the structural switch of the DNA G-quadruplex.