Agar is a gelatinous material prepared from certain red algae that is used to solidify nutrient media for growing microorganisms.