A small-sized imidazole-derived ligand binds to the KRAS promoter G-quadruplex and inhibits cancer growth with enhanced immunomodulation. Here, KRAS is linked to cancer.