Our study revealed that MED12 and CDK8/19 regulate AR activity and that their inhibition may modulate response to enzalutamide in prostate cancer. Here, MED12 is linked to prostate cancer.