Flutamide binds to androgen receptors in the prostate, thus blocking the effect of androgens like testosterone and dihydrotestosterone. This action prevents androgens from stimulating the cancer cells, thereby slowing the growth and spread of the cancer.