Scientists have deciphered how a virus genome is condensed inside the capsid of a virus.