Provided are compounds having an inhibitory effect on sodium-dependent glucosecotransporter SGLT. The invention also provides pharmaceutical compositions,methods of preparing the compounds, synthetic intermediates, and methods ofusing the compounds, independently or in combination with other therapeuticagents, for treating diseases and conditions which are affected by SGLT inhibition.