Provided in the present invention are a compound for inhibiting sodium glucose cotransporter 1, and a pharmaceutically acceptable salt and a stereoisomer of the compound. The compound is used for a pharmaceutical composition, and further provided is a method for preparing and using same, comprising the use of the drug or the composition in the preparation for the treatment and improvement of diabetes, cardiovascular and cerebrovascular diseases, weight loss, fatty liver, constipation, metabolism-related diseases and in the treatment of tumors.