Abiraterone acetate works by inhibiting the enzyme CYP17A1, which is crucial in the production of androgens. Androgens, such as testosterone, play a significant role in the progression of prostate cancer. By blocking this enzyme, abiraterone acetate reduces the production of androgens not only in the testes but also in the adrenal glands and the tumor itself.