Erleada works by blocking the effects of androgen, a male hormone that can stimulate the growth of prostate cancer cells. It binds to the androgen receptor, preventing the hormone from activating the receptor, thereby inhibiting the growth and spread of cancer cells.