They are, very basically, solutions which resist small changes of pH, they generally work by, upon the addition of acid or alkali, the equilibrium in he mixture is disturbed, and a reaction occurs to return it to the same pH.
You can read more here:
Buffer solution - Wikipedia, the free encyclopedia