The invention discloses a cycloalkane thiophthene derivative and pharmaceutically acceptable salts, metabolic products or prodrugs thereof. A compound can be used for treating diseases related with STAT3 (Signal Transducer and Activator of Transcription 3) activation, such as ovarian cancer, endometrial cancer, cervical cancer, breast cancer, colon cancer, pancreatic cancer, lung cancer, brain cancer, prostate cancer, kidney cancer, liver cancer, bladder cancer, oral cancer, sarcoma, prostate cancer, head and neck squamous cell carcinoma, neuroglioma, melanoma, lymphoma, leukemia, and renal fibrosis, pulmonary fibrosis, rheumatoid arthritis, hair growth, arthritis, psoriasis, lupus erythematosus, inflammatory lung diseases and inflammatory bowel diseases. (The formula is shown in the description.).