A 1,2,4-triazole compound shown in formula (I) and pharmaceutically acceptable salts thereof. The compound has the activity of an apoptosis signal-regulating kinase 1 ("ASK1") inhibitor; thus, the compound can be used for treating ASK1 mediated diseases including chronic liver disease, cardiovascular disease, metabolic disturbance, respiratory system disorder, gastrointestinal disorder, and neurodegenerative diseases. A pharmaceutical composition comprising the compound of formula (I) and uses thereof.