The transferred gene (specifically, cry genes) codes for a protein toxin that is effective against certain insect pests, such as the cotton bollworm.