A series of two-photon absorption pyridinium sulfonate inner salts targeting endoplasmic reticulum (ER), inducing cellular stress and mitochondria-mediated apoptosis in cancer cells.