Disclosed are an antiviral compound and a use thereof in the preparation of a medicament for the treatment of virus infections. Specifically, the present invention relates an imidazole derivative for treating respiratory syncytial virus infection.本發明公開了一種抗病毒化合物及其在製備治療病毒感染藥物上的應用。具體地,本發明涉及治療呼吸道合胞病毒感染的咪唑衍生物。