Cordyceps is a genus of ascomycete fungi. Most Cordyceps species are endoparasitoids, parasitic mainly on insects. When a Cordyceps fungus attacks a host, the mycelium invades and eventually replaces the host tissue. The ascocarp bears many small, flask-shaped perithecia containing asci. These, in turn, contain thread-like ascospores, which usually break into fragments and are presumably infective.