Stattic functions by directly binding to the STAT3 protein, thus inhibiting its activation and dimerization. This inhibition prevents STAT3 from translocating to the nucleus and binding to DNA, thereby blocking the transcription of genes involved in cell survival and proliferation. By inhibiting STAT3, stattic can reduce the expression of anti-apoptotic proteins and other factors that contribute to cancer cell survival and growth.