The homeodomain (HD) is a 60 amino acid-long DNA-binding domain. A large fraction of HDs binds with high affinity sequences containing the 5'-TAAT-3' core motif. However, NK-2 class HDs recognizes sequences containing the 5'-CAAG-3' core motif. By using a cell transfection approach, here we show that modification of residues located in the N-terminal arm (at positions 6, 7 and 8) and in the recognition helix (at position 54) is enough to swap the "in vivo" binding specificity of TTF-1 HD (which is a member of the NK-2 class HD) from 5'-CAAG-3' to 5'-TAAT-3'-containing targets. The role of residue at position 54 is also supported by data obtained with the HD of the Drosophila engrailed protein. These data support the notion that DNA-binding specificity "in vivo" is dictated by few critical residues.