FIELD: medicine, pharmaceutics.SUBSTANCE: present invention refers to an immunodepressant based on a heterocyclic compound of formulaor to its pharmaceutically acceptable salt where X represents a nitrogen atom or CH, both or one of R1 or R2 represents a hydrogen atom, hydroxyl, a halogen atom, an amino group, C1-C6 alkoxy or C1-C6 alkyl: R3 represents a hydrogen atom, difluoromethyl, an amino group, methyl or hydroxymethyl; R4 or R5 represents a hydrogen atom or C1-C6 alkyl; R6 represents morpholino (optionally substituted by one or two C1-C6 alkyl groups), pyrrolidinyl (optionally substituted by hydroxy C1-C6 alkyl), piperidine (which is optionally substituted by an oxygen atom, hydroxyl, formyl or C1-C6 alkyl), piperazinyl (optionally substituted by one or two oxygen atoms, where a nitrogen atom in position 4 is optionally substituted by a substitute selected from a groups consisting of formyl, C1-C6 hydroxyalkyl, C1-C6 alkoxycarbonyl, C1-C6 oxoalkyl, furoyl, benzoyl, methoxybenzoyl, benzylcarbonyl, dimethylcarbamoyl, diethylcarbamoyl, morpholinocarbonyl and methoxyacetyl) or 1,4-diazepano (optionally substituted by one oxygen atom where a nitrogen atom in position 4 is optionally substituted by a substitute selected from a group consisting of formyl, C1-C6 oxoalkyl). Also, the invention refers to a heterocyclic compound of general formulaand to an anticancer drug based on the compound of formula (II).EFFECT: there are produced new immunodepressant based on the compound of formula (I) and compound of formula (II) which can be used as anticancer drugs.12 cl, 8 tbl, 60 exНастоящее изобретение относится к иммунодепрессанту на основе гетероциклического соединения формулы (I) или к его фармацевтически приемлемой соли, где X представляет атом азота или CH; оба или один из R1 или R2 представляет атом водорода, гидроксил, атом галогена, аминогруппу, C1-С6 алкокси или C1-С6 алкил; R3 представляет атом водорода, дифторметил, аминогруппу, метил или гидроксиметил; R4 или R