When an acid or base salt is dissolved in water, it can undergo hydrolysis, where the ions in the salt react with water to produce a weak acid or base. The equilibrium can lie to the left or right, depending on the equilibrium constants of the acid and base and the concentration of water.