Rancid butter develops its characteristic foul smell due to bacterial hydrolysis of triglycerides, releasing free fatty acids. Butyric acid (C3H7COOH, butanoic acid) is particularly volatile and malodorous. Caproic, stearic, and palmitic acids are either not produced in significant quantities or are less odorous.