Cystatins are natural inhibitors of papain-like (family C1) and legumain-related (family C13) cysteine peptidases. Cystatin D is a type 2 cystatin, a secreted inhibitor found in human saliva and tear fluid. Compared with its homologues, cystatin D presents an unusual inhibition profile with a preferential inhibition cathepsin S > cathepsin H > cathepsin L and no inhibition of cathepsin B or pig legumain. To elucidate the structural reasons for this specificity, we have crystallized recombinant human Arg(26)-cystatin D and solved its structures at room temperature and at cryo conditions to 2.5- and 1.8-A resolution, respectively. Human cystatin D presents the typical cystatin fold, with a five-stranded anti-parallel beta-sheet wrapped around a five-turn alpha-helix. The structures reveal differences in the peptidase-interacting regions when compared with other cystatins, providing plausible explanations for the restricted inhibitory specificity of cystatin D for some papain-like peptidases and its lack of reactivity toward legumain-related enzymes.