CYP17A1 is a cytochrome P450 enzyme with 17-alpha-hydroxylase and C17,20-lyase activities. CYP17A1 genetic variants are associated with coronary artery disease, myocardial infarction and visceral and subcutaneous fat distribution; however, the underlying pathological mechanisms remain unknown. We aimed to investigate the function of CYP17A1 and its impact on atherosclerosis in mice. At 4-6 months, CYP17A1-deficient mice were viable, with a KO:Het:WT ratio approximating the expected Mendelian ratio of 1:2:1. All Cyp17a1 knockout (KO) mice were phenotypically female; however, 58% were Y chromosome-positive, resembling the phenotype of human CYP17A1 deficiency, leading to 46,XY differences/disorders of sex development (DSD). Both male and female homozygous KO mice were infertile, due to abnormal genital organs. Plasma steroid analyses revealed a complete lack of testosterone in XY-KO mice and marked accumulation of progesterone in XX-KO mice. Elevated corticosterone levels were observed in both XY and XX KO mice. In addition, Cyp17a1 heterozygous mice were also backcrossed onto an Apoe KO atherogenic background and fed a western-type diet (WTD) to study the effects of CYP17A1 on atherosclerosis. Cyp17a1 x Apoe double KO XY mice developed more atherosclerotic lesions than Apoe KO male controls, regardless of diet (standard or WTD). Increased atherosclerosis in CYP17A1 XY KO mice lacking testosterone was associated with altered lipid profiles. In mice, CYP17A1 deficiency interferes with sex differentiation. Our data also demonstrate its key role in lipidomic profile, and as a risk factor in the pathogenesis of atherosclerosis.