Liquid detergent contains soap as well as synthetic surfactants. This is usually made first as a premix, then other ingredients are blended into it. This step simply consists of neutralising fatty acids (rather than fats themselves) with either caustic soda (NaOH) or potassium hydroxide.