We identified a novel metabolic system of morphine in the opium poppy (Papaver somniferum L.). In response to stress, morphine is quickly metabolized to bismorphine consisting of two morphine units, followed by accumulation in the cell wall. This bismorphine binds predominantly to pectins, which possess high galacturonic acid residue contents, through ionical bonds. Our newly developed method using artificial polysaccharides demonstrated that bismorphine bridges are formed between the two amino groups of bismorphine and the carboxyl groups of galacturonic acid residues, resulting in cross-linking of galacturonic acid-containing polysaccharides to each other. The ability of bismorphine to cross-link pectins is much higher than that of Ca2+, which also acts as a cross-linker of these polysaccharides. Furthermore, we confirmed that cross-linking of pectins through bismorphine bridges leads to resistance against hydrolysis by pectinases. These results indicated that production of bismorphine is a defense response of the opium poppy. Bismorphine formation is catalyzed by anionic peroxidase that pre-exists in the capsules and leaves of opium poppies. The constitutive presence of morphine, together with bismorphine-forming peroxidase, enables the opium poppy to rapidly induce the defense system.