The invention discloses a class of compounds for treating or preventing hyperuricemia or gout, which is a compound shown in general formula (I) or a pharmaceutically acceptable salt. These compounds and their pharmaceutically acceptable salts in the invention are useful for the promotion of uric acid excretion to treat or prevent hyperuricemia or gout.