Disclosed herein are new heterocyclic compounds and compositions and their application as pharmaceuticals for the treatment of disease. Methods of modulation of TGR5 activity in a human or animal subject are also provided for the treatment diseases mediated by TGR5.