Answer is: buffers.
Buffer is a solution that can resist pH change upon the addition of an acidic or basic components and it is able to neutralize small amounts of added acid or base, pH of the solution is relatively stable.
Buffer solution changes pH very little when a small amount of strong acid or base is added to solution.
A buffer can be defined as a substance that prevents the pH of a solution from changing by either releasing or absorbing H⁺ in a solution.