An endophyte is a naturally occurring fungus that is found in ryegrass and tall fescue pastures. Endophytes are essential for persistence in most New Zealand pasture as it protects the plant from insect attack.