The present invention relates to a fused imidazole derivative having IDO / TDO inhibition activity and having a structure represented by a formula (I), a preparation method and applications thereof. According to the present invention, the series of the fused imidazole derivatives have high IDO / TDO inhibition activity, can be widely used for treating or preventing cancers or tumors, viral infections, depression, neurodegenerative disorders, trauma, age-related cataract, organ transplant rejections or autoimmune diseases, can further be used to inhibit the immune suppression of patients, and are expected to be developed into the new generation of the immunosuppressive agent. The formula (I) is defined in the specification.