Soaps are the sodium or potassium salts of higher fatty acids, containing number of carbon atoms more than $12,$ e.g. stearic, oleic and palmitic acids. These are prepared by heating fat with aqueous sodium hydroxide solution. This reaction is known as saponification.