The present invention provides compounds represented by Formula I, or pharmaceutically acceptable salts, stereoisomers, solvates, hydrates or combination thereof, (I). The invention also provides pharmaceutical compositions comprising these compounds and methods of using this compounds for treating FXR-mediated or TGR5-mediated diseases or conditions.