Catalyzes the dephosphorylation of 2-6 carbon acid sugars in vitro. In murine kidney infection models nagD mutant was attenuated in virulence. Belongs to the HAD-like hydrolase superfamily. NagD family.