The YdjC-family protein is widely distributed, from human to bacteria, but so far no three-dimensional structure and functional analysis of this family of proteins has been reported. We determined the three-dimensional structure of the YdjC homolog TTHB029 at a resolution of 2.9Å. The overall structure of the monomer consists of (βα)-barrel fold forming a homodimer. Asp21, His60, and His127 residues coordinate to Mg2+ as a possible active site. TTHB029 shows structural similarity to the peptidoglycan N-acetylglucosamine deacetylase from Streptococcus pneumoniae (SpPgdA). The active site groove of SpPgdA includes the Zn2+ coordinated to Asp276, His326, and His330. Despite the low sequence identity, metal-binding residues of Asp–His–His were conserved among the two enzymes. There were definitive differences, however, in that one of the histidines of the metal-binding site was substituted for the other histidine located on the other loop. Moreover, these important metal-binding residues and the residues of the presumed active site are fully conserved in YdjC-family protein.