Natamycin is used as a preservative in the food industry. It is commonly employed in the preservation of various food products, such as cheese, cured meats, and baked goods. Natamycin is effective against a wide range of fungi and yeasts, making it a popular choice for preventing spoilage and extending the shelf life of perishable foods.