Bt-toxin is produced by the bacterium Bacillus thuringiensis. It is synthesized as an inactive crystalline protein called protoxin. In the alkaline environment of the pest's gut, the protoxin is hydrolyzed and activated into toxic forms. These activated toxins then bind to specific receptors in the gut epithelium, causing cell lysis and leading to the death of the pest.