Sodium hydroxide is derived from Sodium chloride solution (salty water) and is used to saponify oils to make soap. Whilst it has a high pH, when it's mixed with oils and properly processed, no trace is left in the soap and it is a safe product to use.