The three-dimensional structure of Dolichos biflorus seed lectin has been constructed using five legume lectins for which high resolution crystal structures were available. The validity of the resulting model has been thoroughly investigated. Final structure optimization was conducted for the lectin complexed with alpha GalNAc, providing thereby the first three-dimensional structure of lectin/GalNAc complex. The role of the N-acetyl group was clearly evidenced by the occurrence of a strong hydrogen bond between the protein and the carbonyl oxygen of the carbohydrate and by hydrophobic interaction between the methyl group and aromatic amino acids. Since the lectin specificity is maximum for the Forssman disaccharide alpha GalNAc(1-3) beta GalNAc-O-Me and the blood group A trisaccharide alpha GalNAc(1-3)[alpha Fuc(1-2)] beta Gal-O-Me, the complexes with these oligosaccharides have been also modelled.