In other words, the reaction in soap-making occurs between triglycerides (the main components of fats or oils) and sodium or potassium hydroxide. During the process, the hydroxide ions from the alkali break down the triglyceride molecules into individual fatty acids and glycerol. The fatty acids then combine with the alkali metal ions to form soap molecules, while the glycerol is separated as a by-product.