The present disclosure disclosed a modulator of FXR receptor and preparation and use thereof, which relates to the technical filed of medicinal chemistry. The present disclosure provides a modulator of FXR receptor having a structural formula I or a pharmaceutically acceptable salt, stereoisomer, solvate or prodrug thereof, which can combine with FXR receptor (that is NR1H4) and be acted as a FXR agonist or a partial agonist for preventing and treating the disease mediated by FXR, such as chronic intrahepatic or extrahepatic cholestasis, hepatic fibrosis caused by chronic cholestasis or acute intrahepatic cholestasis, chronic hepatitis B, gallstone, hepatic carcinoma, colon cancer or intestinal inflammatory disease, etc. Specifically, for some chemical compounds, their EC50 for FXR agonist activity reach below 100nM, which show an excellent FXR agonist activity and an excellent prospect to provide a new pharmaceutical selection in clinical treatment for the disease mediated by FXR.