Throughout evolution, one of the most ancient forms of aggression between cells or organisms has been the production of proteins or peptides affecting the permeability of the target cell membrane. This class of virulence factors includes the largest family of bacterial toxins, the pore-forming toxins (PFTs). PFTs are bistable structures that can exist in a soluble and a transmembrane state. It is unclear what drives biosynthetic folding towards the soluble state, a requirement that is essential to protect the PFT-producing cell. Here we have investigated the folding of aerolysin, produced by the human pathogen Aeromonas hydrophila, and more specifically the role of the C-terminal propeptide (CTP). By combining the predictive power of computational techniques with experimental validation using both structural and functional approaches, we show that the CTP prevents aggregation during biosynthetic folding. We identified specific residues that mediate binding of the CTP to the toxin. We show that the CTP is crucial for the control of the aerolysin activity, since it protects individual subunits from aggregation within the bacterium and later controls assembly of the quaternary pore-forming complex at the surface of the target host cell. The CTP is the first example of a C-terminal chain-linked chaperone with dual function.