Processes are provided for the synthesis of diarylthiohydantoin and diarylhydantoin compounds, such as compounds of the formula:wherein X, Y1, Y2, R1, and R2 are as defined herein. Medicinal products containing the same find particular use in treating prostate cancer, including castration-resistant prostate cancer and/or hormone-sensitive prostate cancer.