Rancidity is the spoilage of lipids, with two types: oxidative rancidity, which occurs when oxygen combines with a carbon atom at the double bond, resulting in an unpleasant rancid smell, and hydrolytic rancidity, which occurs when enzymes or bacteria hydrolyse lipids, changing them to fatty acids and glycerol, resulting in an unpleasant smell or taste.