The metabolic functions of androgen receptor (AR) in normal prostate are circumvented in prostate cancer (PCa) to drive tumor growth, and the AR also can acquire new growth-promoting functions during PCa development and progression through genetic and epigenetic mechanisms. Androgen deprivation therapy (ADT, surgical or medical castration) is the standard treatment for metastatic PCa, but patients invariably relapse despite castrate androgen levels (castration-resistant PCa, CRPC). Early studies from many groups had shown that AR was highly expressed and transcriptionally active in CRPC, and indicated that steroids from the adrenal glands were contributing to this AR activity. More recent studies showed that CRPC cells had increased expression of enzymes mediating androgen synthesis from adrenal steroids, and could synthesize androgens de novo from cholesterol. Phase III clinical trials showing a survival advantage in CRPC for treatment with abiraterone (inhibitor of the enzyme CYP17A1 required for androgen synthesis that markedly reduces androgens and precursor steroids) and for enzalutamide (new AR antagonist) have now confirmed that AR activity driven by residual androgens makes a major contribution to CRPC, and led to the recent Food and Drug Administration approval of both agents. Unfortunately, patients treated with these agents for advanced CRPC generally relapse within a year and AR appears to be active in the relapsed tumors, but the molecular mechanisms mediating intrinsic or acquired resistance to these AR-targeted therapies remain to be defined. This review outlines AR functions that contribute to PCa development and progression, the roles of intratumoral androgen synthesis and AR structural alterations in driving AR activity in CRPC, mechanisms of action for abiraterone and enzalutamide, and possible mechanisms of resistance to these agents.