In chemistry, soap is a salt of a fatty acid
Fatty acid
In chemistry, especially biochemistry, a fatty acid is a carboxylic acid with a long unbranched aliphatic tail , which is either saturated or unsaturated. Most naturally occurring fatty acids have a chain of an even number of carbon atoms, from 4 to 28. Fatty acids are usually derived from...

.IUPAC. "IUPAC Gold Book – soap" Compendium of Chemical Terminology, 2nd ed. (the "Gold Book"). Compiled by A. D. McNaught and A. Wilkinson. Blackwell Scientific Publications, Oxford (1997). XML on-line corrected version: created by M. Nic, J. Jirat, B.