The way helix-turn-helix proteins recognize DNA is analysed by comparing their sequences, structures, and binding specificities. Individual recognition helices in these proteins bind to four DNA base pairs with the same geometry. However, pairs of recognition helices in the protein dimers can have different separations and orientations. These differences are used for discriminating between DNAs which have different superstructures, in particular, different numbers of base pairs between sets of the four base pairs.