Abstract: The invention provides compounds for use as medicaments, which act by inhibiting CYP17A1 and CYP19A1 enzymes. The compounds have particular application in the treatment of cancer especially prostate cancer and breast cancer. The compounds have the formula: [Chem.