Lye is used in the saponification process. The lye mixes with the oils to make the soap. The end product is actually called "saponified oils" because there is no lye remaining in the bar.