A buffer is simply a mixture of a weak acid and its conjugate base or a weak base and its conjugate acid. Buffers work by reacting with any added acid or base to control the pH.
Hope this helps
A buffer works by bonding with the added H+ or OH- in solution