Disclosed are derivatives of 1H-imidazole-4,5-dicarboxamide and use thereof in preparation of anticoccidial drugs. The derivatives have structural formulae as shown in formulae (I) to (VI). The derivatives of 1H-imidazole-4,5-dicarboxamide as disclosed in the present invention have significant anticoccidial effect, especially against coccidia that show a resistance to other anticoccidial drugs, and thus they can be used in preparation of anticoccidial drug.