Intracellular DNA sensors regulate innate immunity and can provide a bridge to adaptive immunogenicity. However, the activation of the sensors in antigen-presenting cells (APCs) by natural agonists such as double-stranded DNAs or cyclic nucleotides is impeded by poor intracellular delivery, serum stability, enzymatic degradation and rapid systemic clearance. Here we show that the hydrophobicity, electrostatic charge and secondary conformation of helical polypeptides can be optimized to stimulate innate immune pathways via endoplasmic reticulum stress in APCs. One of the three polypeptides that we engineered activated two major intracellular DNA-sensing pathways (cGAS-STING (for cyclic guanosine monophosphate-adenosine monophosphate synthase-stimulator of interferon genes) and Toll-like receptor 9) preferentially in APCs by promoting the release of mitochondrial DNA, which led to the efficient priming of effector T cells. In syngeneic mouse models of locally advanced and metastatic breast cancers, the polypeptides led to potent DNA-sensor-mediated antitumour responses when intravenously given as monotherapy or with immune checkpoint inhibitors. The activation of multiple innate immune pathways via engineered cationic polypeptides may offer therapeutic advantages in the generation of antitumour immune responses.