C, O-spiro aryl glycoside compounds are provided. Specifically provided are C, O-spiro aryl glycoside compounds represented by the formula (I), wherein the definitions of each variable group are described in the specification. Also provided are methods of preparing and using the C, O-spiro aryl glycoside compounds. The C, O-spiro aryl glycoside compounds can be used as SGLT2 inhibitors and for treating diseases, such as diabetes, atherosclerosis, and adiposity.