Which agreement banned the use, production and destruction of chemical weapons and the stockpiles?

Which agreement banned the use, production and destruction of chemical weapons and the stockpiles?