The farnesoid X receptor (FXR) has been recognized as a potential drug target for the treatment of non-alcoholic fatty liver disease (NAFLD). FXR agonists benefit NAFLD by modulating bile acid synthesis and transport, lipid metabolism, inflammation, and fibrosis pathways. However, there are still great challenges involved in developing safe and effective FXR agonists. To investigate the critical factors contributing to their activity on the FXR, 3D-QSAR molecular modeling was applied to a series of isoxazole derivatives, using comparative molecular field analysis (CoMFA (q2 = 0.664, r2 = 0.960, r2pred = 0.872)) and comparative molecular similarity indices analysis (CoMSIA (q2 = 0.706, r2 = 0.969, r2pred = 0.866)) models, which demonstrated strong predictive ability in our study. The contour maps generated from molecular modeling showed that the presence of hydrophobicity at the R2 group and electronegativity group at the R3 group in these compounds is crucial to their agonistic activity. A molecular dynamics (MD) simulation was carried out to further understand the binding modes and interactions between the FXR and its agonists in preclinical or clinical studies. The conformational motions of loops L: H1/H2 and L: H5/H6 in FXR-ligand binding domain (LBD) were crucial to the protein stability and agonistic activity of ligands. Hydrophobic interactions were formed between residues (such as LEU287, MET290, ALA291, HIS294, and VAL297) in helix H3 and ligands. In particular, our study found that residue ARG331 participated in salt bridges, and HIS447 participated in salt bridges and hydrogen bonds with ligands; these interactions were significant to protein-ligand binding. Eight new potent FXR agonists were designed according to our results, and their activities were predicted to be better than that of the first synthetic FXR agonist, GW4064.