Bacteria have been secretly running a drug factory inside themselves for millions of years — and scientists have finally figured out how it works.

Researchers at the University of Warwick in the UK and Monash University in Australia have uncovered the molecular trick that bacteria use to naturally manufacture multiple versions of powerful anti-cancer drugs. The discovery, published in the journal Nature Communications, solves a puzzle that has stumped scientists for decades.

The key, it turns out, is tiny molecular connectors called "docking domains." These small regions act like specialized adapters, allowing different enzymes inside bacteria to recognize each other and pass their work along a production line. Think of it like a factory where each machine has a unique plug that only fits the next machine — except these plugs are flexible enough to connect with several different partners. That flexibility lets bacteria create variations of the same basic drug molecule, kind of like how a chef might swap out ingredients to make different dishes from one recipe.

One drug already approved by the FDA that uses this system is Romidepsin (also known as Istodax), which treats certain blood cancers called T-cell lymphomas. The researchers found that another closely related compound, FR-9001375, is made using the same biological pathway — a mystery that scientists had wondered about for decades.

The team, led by Dr. Munro Passmore from the University of Warwick's Department of Chemistry, spent years combining multiple scientific approaches including genetics, biochemistry, and computer modeling to crack the code. They even identified the specific genes in a bacterium called Pseudomonas chlororaphis subsp. piscium that produce FR-9001375.

The real excitement, though, is about what comes next. Now that researchers understand how nature does it, they can use that knowledge as a blueprint to design entirely new drug candidates — ones that might work better, have fewer side effects, or target cancers that currently lack good treatment options.

"This research gives us a blueprint to do what nature does, but better and faster," said Professor Greg Challis, who holds positions at both universities. His team is now working to build an expanded library of drug candidates, focusing on cancers where new treatments are urgently needed.

HDAC inhibitors, the class of drugs this research relates to, work by blocking certain enzymes that help control which genes are active inside cells. By better understanding how these molecules are assembled naturally, scientists are now positioned to create improved versions designed specifically for clinical use.