Soap is made by mixing lye (sodium hydroxide) with lard or some sort of fat or oil; the process is Called saponification. When the fats or oils (which are acids) are mixed with the lye (which is a strong alkali), the fat or oil is split into fatty acids and glycerin.

The sodium part of the lye joins with the fatty acids to form a new compound called sodium stearate – soap. The glycerin helps the soap to set hard and is also a good skin moisturizer.