Microbial melanins are a group of pigments with protective effects against harsh conditions, showing fascinating photoprotective activities, mainly due to their capability to absorb UV radiation. In bacteria, they are produced by the oxidation of L-tyrosine, generating eumelanin and pheomelanin. Meanwhile, allomelanin is produced by fungi through the decarboxylative condensation of malonyl-CoA. Moreover, melanins possess antioxidant and antimicrobial activities, revealing significant properties that can be used in different industries, such as cosmetic, pharmaceutical, and agronomical. In agriculture, melanins have potential applications, including the development of new biological products based on this pigment for the biocontrol of phytopathogenic fungi and bacteria to reduce the excessive and toxic levels of agrochemicals used in fields. Furthermore, there are possibilities to develop and improve new bio-based pesticides that control pest insects through the use of melanin-producing and toxin-producing Bacillus thuringiensis or through the application of melanin to insecticidal proteins to generate a new product with improved resistance to UV radiation that can then be applied to the plants. Melanins and melanin-producing bacteria have potential applications in agriculture due to their ability to improve plant growth. Finally, the bioremediation of water and soils is possible through the application of melanins to polluted soils and water, removing synthetic dyes and toxic metals.