The evolutionary success of insects is arguably due to their ability to build up a complex, highly-adaptable and very effective defense system against numerous pathogens, including entomopathogenic fungi. This system relies on the humoral immune system and cellular defense reactions. The first line of defense against biological pathogens is a cuticle formed of several layers. The cuticular lipids may contain hydrocarbons, free fatty acids (FFA), alcohols, waxes, glycerides, aldehydes and sterols. Cuticular fatty acids may also play a role in defending against fungal invasion. Our present findings show that the diet of insects can have a significant effect on their sensitivity and defense response to pathogens; for example, while G. mellonella larvae fed on beeswax had a similar appearance to those reared on a semi-artificial diet, they possessed a different cuticular free fatty acid (FFA) profile to those fed on a semi-artificial diet, and were less sensitive to Conidiobolus coronatus infection. It is possible that the presence of heneicosenoic acid (C21:1) and other long-chain free fatty acids (C22:0, C24:0, C26:0), as well as Brevibacillus laterosporus bacteria, on the cuticle of larvae fed on beeswax, plays a protective role against fungal invasion. Insect pests represent a global problem. An understanding of the basic mechanisms underlying the fungal infection of insects might provide a clearer insight into their defenses, thus allowing the design of more effective, and environmentally-friendly, means of controlling them. The greater wax moth is an excellent model for the study of immunology resistance. Knowledge of the influence of diet on pathogen resistance in insects can be also useful for creating a model of human diseases caused by pathogens, such as Candia albicans.