FIELD: medicine, pharmaceutics.SUBSTANCE: invention refers to a compound presented by formula,wherein A1 means benzene or heterocycle specified in a group consisting of pyridine, pyrazine, imidazole, thiazole, pyrimidine, thiophen, pyridazine, benzoxazine and oxobenzoxazine; A2 means benzene, if needed substituted by fluorine, or thiophen; B1 means hydrogen, lower alkyl, if needed substituted by piperazinyl or morpholino, halogen-substituted lower alkyl, lower alkoxy substituted by carbamoyl, acylamino, carbamoyl or lower alkylcarbonyloxy (provided A1 means thiazole, B1 does not mean acylamino); B2 means hydrogen or a functional group containing at least one nitrogen atom specified in a group consisting of acylamino, pyrrolidinyl, morpholino, piperidinyl, if needed substituted by acyl, piperazinyl, if needed substituted by lower alkyl or acyl, pyrazolyl, diazabicyclo[2.2.1]heptyl, if needed substituted by acyl, and di-(lower alkyl)amino, if needed substituted by amino or acylamino (provided A1 means thiazole, B2 does not mean acylamino); Y means a group presented by formula,wherein J means ethylene or lower alkynylene; L means a bond; M means a bond; X means -(CH2)m-, -(CH2)m-O- or -(CH2)m-NR2- (wherein m is an integer of 0 to 3, and R2 means hydrogen); D means -NR3-, wherein R3 means hydrogen; and E means amino, or its pharmaceutically acceptable salt. The compounds of formula (I) are used for preparing a pharmaceutical agent or a pharmaceutical composition for treating or preventing the VAP-1 related diseases.EFFECT: benzene or thiophen derivative as a VAP-1 inhibitor.13 cl, 25 tbl, 125 exИзобретение относится к соединению, представленное формулой (I), в которой A1 обозначает бензол или гетероцикл, выбранный из группы, состоящей из пиридина, пиразина, имидазола, тиазола, пиримидина, тиофена, пиридазина, бензоксазина и оксобензоксазина; A2 обозначает бензол, в случае необходимости замещенный фтором, или тиофен; B1 обозначает водород, низший алкил, в случае необхо