Sodium Hydroxide, molecular formula NaOH, is an alkali used in the soap making process. When mixed with a liquid, it becomes known as Lye.  When combined with fats, Lye and the fats react with one another to form soap molecules. Chemistry at work!