The farnesoid-X receptor (FXR), a member of the nuclear hormone receptor superfamily, can be activated by bile acids (BAs). BAs binding to FXR activates BA signaling which is important for maintaining BA homeostasis. FXR is differentially expressed in human organs and exists in immune cells. The dysregulation of FXR is associated with a wide range of diseases including metabolic disorders, inflammatory diseases, immune disorders, and malignant neoplasm. Recent studies have demonstrated that FXR influences tumor cell progression and development through regulating oncogenic and tumor-suppressive pathways, and, moreover, it affects the tumor microenvironment (TME) by modulating TME components. These characteristics provide a new perspective on the FXR-targeted therapeutic strategy in cancer. In this review, we have summarized the recent research data on the functions of FXR in solid tumors and its influence on the TME, and discussed the mechanisms underlying the distinct function of FXR in various types of tumors. Additionally, the impacts on the TME by other BA receptors such as takeda G protein-coupled receptor 5 (TGR5), sphingosine-1-phosphate receptor 2 (S1PR2), and muscarinic receptors (CHRM2 and CHRM3), have been depicted. Finally, the effects of FXR agonists/antagonists in a combination therapy with PD1/PD-L1 immune checkpoint inhibitors and other anti-cancer drugs have been addressed.