Mean-field interactions between nucleic-acid-base dipoles can drive the formation of a double helix.