Lipids are naturally occurring compounds from plants and animals with a varied structure predominantly containing carbon and hydrogen. They are mainly classified as saponifiable, which can produce fatty acid salts upon reaction with sodium hydroxide, and nonsaponifiable, which do not react in this way, and include substances like steroids and terpenes. Lipids play essential roles in biological functions such as serving as electron carriers and acting as chemical signals (pheromones).