Food spoilage occurs when microorganisms like bacteria, molds, and yeasts cause foods to deteriorate and become inedible. The main factors that determine spoilage are water activity, temperature, pH, and atmosphere. Different foods spoil in different ways due to their properties - for example, molds are more likely than bacteria to cause fruit and vegetable spoilage. Food preservation methods like boiling, refrigeration, and canning aim to stop microbial growth and slow spoilage. Properly preserving foods maintains nutritional value and protects consumers from food poisoning.