Agar is a gelatinous substance derived from seaweed, primarily used in microbiology as a culture medium for growing bacteria and other microorganisms. Its unique properties allow it to solidify at room temperature, providing a stable environment for microbial growth and study.