Compounds of Formulae I, II, their pharmaceutically acceptable salts or esters thereof capable of binding to and modulating the activity of a stimulator of interferon genes (STING) protein are provided. Methods involving compounds of Formulae I or II as effective modulators of STING are also provided.