Corrosion inhibitors are chemicals that are added to liquids or gases to significantly reduce the rate of corrosion of a material, typically a metal. They work by forming a protective film on the metal's surface or by influencing the electrochemical reactions that lead to corrosion.