Lye is a chemical compound known as sodium hydroxide. Lye is used in many different ways, such as: food preparation, biodiesel production, water treatment, and of course in making soaps and detergents. Lye is highly corrosive and known as a “caustic soda”.