Microorganisms can be beneficial or harmful. There are four main types - bacteria, fungi, algae, and protozoa. Viruses are also microorganisms. Beneficial microorganisms help decompose waste, fix nitrogen in soil, and are used to make foods like cheese, bread, and medicines. However, some microorganisms cause diseases in plants, animals, and humans by spreading through various modes of transmission. Various methods are used to preserve foods and prevent microbial spoilage, such as using chemicals, salt, sugar, oil, heat treatments, and sealed storage.