Yes: bacterial genes can be inserted into plants, and this is not merely a theoretical possibility—it is the basis of most commercial genetically engineered crops, including insect-resistant corn and cotton and glyphosate-tolerant soybeans. The bacterial gene most familiar to the public, Bacillus thuringiensis (Bt) toxin genes, has been engineered into plants since the 1980s and grown commercially since the mid-1990s. What needs care is distinguishing several different phenomena that all sound like "bacterial genes in plants": deliberate laboratory transformation, natural horizontal gene transfer (especially from Agrobacterium), and the presence of bacterial DNA in plant genomes through other routes. The answer is "yes" for the first, "yes but limited and specific" for the second, and "sometimes, with caveats" for the third.

What "inserting a bacterial gene" actually means

A bacterial gene is a stretch of DNA encoding a protein (or functional RNA). To get it expressed in a plant, scientists must solve three problems that are peculiar to moving a gene across kingdoms.

First, the coding sequence must be compatible with plant expression. Bacterial genes often use codons in frequencies that plant ribosomes handle poorly, so the sequence is frequently "codon-optimized"—rewritten with synonymous codons favored in the host plant—without changing the protein. Some bacterial genes also contain sequence features that mimic plant intron splice sites or cryptic polyadenylation signals, which can cause misprocessing; these are removed or altered.

Second, the gene needs plant-regulatory DNA, not its native bacterial promoter. A bacterial promoter will generally not be recognized by the plant's RNA polymerase II machinery in the nucleus. So the bacterial coding sequence is fused to a plant promoter (often a strong constitutive promoter from a plant virus, such as the cauliflower mosaic virus 35S promoter, which is viral rather than bacterial but functions in plants), a plant terminator, and often a plant 5′ untranslated region that enhances translation.

Third, the gene must be delivered into a plant cell and then into the genome. This is where the bacterium Agrobacterium tumefaciens becomes central—both as a natural genetic engineer and as a laboratory tool.

The natural precedent: Agrobacterium and crown gall

The reason the question has a clean "yes" is that nature got there first. Agrobacterium tumefaciens causes crown gall disease by transferring a segment of its Ti (tumor-inducing) plasmid—the T-DNA—into the plant cell, where it integrates into the plant nuclear genome. The transferred DNA carries bacterial genes (oncogenes) whose products redirect plant metabolism to produce opines, which the bacterium uses as a carbon and nitrogen source. In other words, a bacterium naturally inserts bacterial genes into plants, and the plant expresses them. This is a genuine, well-established example of horizontal gene transfer from bacteria to plants, not a laboratory construct. The laboratory version simply replaces the disease-causing genes in the T-DNA with a gene of interest, keeping the transfer machinery.

Natural transfer is not limited to Agrobacterium. There is evidence of ancient horizontal gene transfer from bacteria (and from fungi) into plant nuclear genomes, and plant mitochondrial genomes in particular have acquired DNA from other organisms. These events are real but are typically detected as sequence similarities and are not the same as a deliberate, single-gene insertion with a known function. The distinction matters: the Agrobacterium case is a mechanism; the broader horizontal-transfer record is an inference from genomic data.

The laboratory methods

Several methods are used, and they differ in what kind of insertion they produce.

Agrobacterium-mediated transformation is the workhorse for dicots (and increasingly for monocots). The gene of interest is cloned between the T-DNA border sequences on a binary plasmid; the bacterium transfers the T-DNA into the plant cell, where it integrates at a more or less random site in the nuclear genome. This is the method behind most commercial Bt crops and glyphosate-tolerant crops.

Biolistics (gene gun) shoots DNA-coated metal particles into plant cells, and the DNA integrates by non-homologous end joining. It is used for plants that are hard to transform with Agrobacterium, notably cereals such as maize and rice, and for chloroplast transformation.

Protoplast transformation uses polyethylene glycol or electroporation to introduce DNA into wall-less plant cells, which are then regenerated into plants.

Chloroplast transformation targets the plastid genome rather than the nucleus. This is a meaningful distinction: the chloroplast is derived from a cyanobacterium, and its gene-expression machinery is more bacteria-like, so bacterial coding sequences can sometimes be expressed there with less re-engineering. Chloroplast transformation also gives high protein accumulation and, because plastids are generally maternally inherited in most crops, reduces pollen-mediated transgene flow—an important biosafety property.

A newer set of methods—genome editing with CRISPR-Cas and similar systems—is often confused with "inserting a bacterial gene." CRISPR-Cas9 is bacterial in origin (the Cas9 nuclease comes from Streptococcus pyogenes), but editing a plant's own gene is not the same as inserting a bacterial gene. Editing can be used to knock out a plant gene, or, in "knock-in" versions, to insert a sequence at a targeted site. When a bacterial coding sequence is delivered by editing, the distinction from classical transformation is about precision of the insertion site, not about the source of the DNA.

Why the origin of the gene matters less than the construct

A common confusion is to treat "bacterial gene" as a single category with a single risk profile. In practice, what matters is the construct: the coding sequence, its regulatory elements, the selectable marker (if any), the integration site, and the number of copies. A bacterial gene encoding a well-characterized enzyme, driven by a plant promoter and integrated at one or a few sites, is a different object from a large T-DNA carrying multiple genes and a marker. The bacterial origin tells you where the sequence came from; it does not by itself tell you what the plant will do with it or how it will be regulated.

A second confusion is between the gene and the protein. The Bt case is instructive: the cry genes come from Bacillus thuringiensis, and the proteins they encode are toxic to certain insect larvae after ingestion and processing in the insect gut. The plant expressing the Bt protein is not itself a bacterium, and the protein's target specificity is a property of the protein and its receptor, not of its bacterial origin. Conversely, a bacterial gene encoding, say, a metabolic enzyme may produce a protein with no toxicological significance at all. Origin is a starting point for risk assessment, not a verdict.

What this means for the "can it be done" question

The direct answer is that insertion is not only possible but routine, and the mechanisms are well understood: Agrobacterium-mediated transfer, biolistics, protoplast methods, and chloroplast transformation. The bacterial gene must be re-engineered for plant expression (plant promoters, codon optimization, removal of cryptic processing signals), delivered into a cell, and integrated into a genome—nuclear or plastid. The Agrobacterium system is itself a natural bacterial-to-plant gene transfer mechanism that has been repurposed.

Where the answer stops being a simple "yes" is in three places. First, not every bacterial gene will function in a plant; expression depends on the construct and the host. Second, natural horizontal transfer is real but is not the same as deliberate transformation, and the frequency and functional consequences of ancient transfers are inferred from genomic evidence rather than observed directly. Third, regulatory status varies by jurisdiction and by product, not by the mere fact that the gene is bacterial; the applicable rules depend on the country, the crop, the trait, and the intended use, and those rules change over time.

Language and usage notes

In scientific writing, "insert" is used for the laboratory act, while "transfer" or "horizontal gene transfer" is used for natural movement; "transformation" in plant biology means the introduction of foreign DNA (not the cancerous change it means in animal cell biology). "Transgenic" describes a plant carrying a gene from another species, including a bacterial gene; "cisgenic" describes a plant carrying a gene from a crossable relative; "intragenic" describes a construct assembled from the plant's own or crossable relatives' sequences. These terms are not interchangeable, and calling a Bt crop "cisgenic" would be incorrect because the cry gene is bacterial. In everyday usage, "genetically modified" is broader than "transgenic" and can include editing that leaves no foreign DNA.

The question is ordinary science communication, not a request for medical, legal, or financial advice, so no professional disclaimer applies. The stable points to carry away: bacterial genes can be and have been inserted into plants; the Agrobacterium system is the natural and laboratory basis for much of it; plant-expression compatibility and construct design, not bacterial origin alone, determine whether the gene works; and any specific claim about a particular crop, trait, or country's rules should be checked against that product's and jurisdiction's current documentation, because those details are version- and date-specific and were not supplied here.