HIV Rev self-assembly is linked to a molten-globule to compact structural transition.