The mutation of SPI51, a protease inhibitor of silkworm, resulted in the change of antifungal activity during domestication.