The present invention relates to novel 1,2-pyridazines, 1,6 represented by formula I, wherein B1-B3 and R1-R7 are as defined in the specification and claims. -Pyridazine or pyrimidine and pharmaceutically acceptable salts thereof. These compounds are GPBAR1 agonists and may therefore be useful as medicaments for the treatment of diseases such as type II diabetes.本発明は、式I(式中、B1~B3及びR1~R7は、本明細書及び特許請求の範囲に定義されるとおりである)で表される、新規1,2-ピリダジン、1,6-ピリダジン又はピリミジンならびにその薬学的に許容しうる塩に関する。これらの化合物は、GPBAR1アゴニストであり、そのために、II型糖尿病などの疾患の処置のための医薬として有用でありうる。