The signal transducer and activator of transcription 3 (STAT3) protein is a master regulator of most key hallmarks and enablers of cancer, including cell proliferation and the response to DNA damage. G-Quadruplex (G4) structures are four-stranded noncanonical DNA structures enriched at telomeres and oncogenes' promoters. In cancer cells, stabilization of G4 DNAs leads to replication stress and DNA damage accumulation and is therefore considered a promising target for oncotherapy. Here, we designed and synthesized novel quinazoline-based compounds that simultaneously and selectively affect these two well-recognized cancer targets, G4 DNA structures and the STAT3 protein. Using a combination of in vitro assays, NMR, and molecular dynamics simulations, we show that these small, uncharged compounds not only bind to the STAT3 protein but also stabilize G4 structures. In human cultured cells, the compounds inhibit phosphorylation-dependent activation of STAT3 without affecting the antiapoptotic factor STAT1 and cause increased formation of G4 structures, as revealed by the use of a G4 DNA-specific antibody. As a result, treated cells show slower DNA replication, DNA damage checkpoint activation, and an increased apoptotic rate. Importantly, cancer cells are more sensitive to these molecules compared to noncancerous cell lines. This is the first report of a promising class of compounds that not only targets the DNA damage cancer response machinery but also simultaneously inhibits the STAT3-induced cancer cell proliferation, demonstrating a novel approach in cancer therapy.