The invention provides compounds that may inhibits to ENPP1, and are accordingly useful for treatment disorders related to ENPP1. The invention further provides pharmaceutical compositions containing these compounds and methods of using these compounds to treat or prevent disorders related to ENPP1.