The invention relates to the technical field of a new purpose of a compound, and mainly provides a purpose of a 2-aminooimidazole derivative to preparation of bacterial biofilm activity inhibition medicine. The invention provides a purpose of the 2-aminooimidazole derivative or pharmacologically acceptable salt or compositions to preparation of medicine for inhibiting the biofilm activity, degrading the bacterial biofilm and destroying the bacterial biofilm; the 2-aminooimidazole derivative has a structure shown as a formula (I) in the description, wherein R is alkyl, alkenyl, alkynyl, aryl, naphthenic groups, haloalkyl, halogenated alkenyl, alkyl amino groups, alkoxy, aryl alkoxy, aryl-O-alkyl, aryl-NH-alkyl, aryl alkenyl, aryl alkyl or aryl alkynyl; R<1>, R<2>, R<3> and R<4> are respectively and independently hydrogen, alkyl, alkenyl, alkynyl, halogen, halogenated alkyl, alkoxy, aryl or aryl alkyl.