Ablation or inhibition of CYP27A1, the enzyme responsible for the rate-limiting step in 27-hydroxycholesterol biosynthesis, significantly reduces metastasis in relevant animal models of cancer. Here, CYP27A1 is linked to cancer.