Background: Mushrooms are a rich source of novel proteins with unique features. Results: Cospin, a trypsin-specific protease inhibitor, has a -trefoil fold and is toxic against the fruit fly. Conclusion: Cospin represents one type of fungal protein-mediated defense against fungivorous insects. Significance: Cospin, the first fungal trypsin inhibitor with determined three-dimensional structure, utilizes a different loop for trypsin inhibition compared with other -trefoil inhibitors.