Compounds of the formula I in which X denotes N or CH, Y denotes Het-diyl or Ar, Q 1 denotes (CH 2) n, O(CH 2) n or (CH 2) n Het 1 -diyl, M denotes (CH 2) p NR 3 CO, CONR 3, NR 3 or CO, Q 2 denotes (CH 2) n O or (CH 2) n, B denotes Ar or Het-diyl, Het denotes furan, thiophene, pyrrole, imidazole, pyrazole, oxazole, isoxazole, oxadiazole, thiazole, triazole, tetrazole, pyridine, pyrimidine, pyridazine, pyrazine, indole, isoindole, indoline, benzimidazole, indazole, quinoline, isoquinoline, benzoxazole, 1,3-benzodioxole, benzothiophene, benzofuran, imidazopyridine, dihydroindole, quinoxaline, benzo[1,2,5]thiadiazole or furo[3,2-b]pyridine, each of which is unsubstituted or mono- or disubstituted by Hal, A, [C(R 3) 2] p OR 3, [C(R 3) 2] p N(R 3) 2, [C(R 3) 2]pHet 1, NO 2, CN, [C(R 3) 2] p COOR 3, CON(R 3) 2, NR 3 COA, NR 3 SO 2 A, SO 2 N(R 3) 2, S n A, COHe t 1, O[C(R 3) 2] m N(R 3) 2, O[C(R 3) 2] p Het 1, NHCOOA, NHCON(R 3) 2, NHCOO[C(R 3) 2] m N(R 3) 2, NHCOO[C(R 3) 2] p Het 1, NHCONH[C(R 3) 2] m N(R 3) 2, NHCONH[C(R 3) 2] p Het 1, OCONH[C(R 3) 2] m N(R 3) 2, OCONH[C(R 3) 2] p Het 1, CHO, COA, =S, =NR 3 and/or =O, Ar denotes phenylene, which is unsubstituted or mono-, di- or trisubstituted by Hal, A, [C(R 3) 2] p OR 3, O[C(R 3) 2] p OR 3, [C(R 3) 2] p N(R 3) 2, O[C(R 3) 2] p N(R 3) 2, [C(R 3) 2] p Het 1, NO 2, CN, [C(R 3) 2] p COOR 3, O[C(R 3) 2] p COOR 3, CON(R 3) 2, NR 3 COA, NR 3 SO 2 A, SO 2 N(R 3) 2, S 2 A, COHet 1, O[C(R 3) 2] p Het 1, NHCOOA, NHCON(R 3) 2, NHCOO[C(R 3) 2] m N(R 3) 2, NHCOO[C(R 3) 2] p Het 1, NHCONH[C(R 3) 2] m N(R 3) 2, NHCONH[C(R 3) 2] p Het 1, OCONH[C(R 3) 2] m N(R 3) 2, OCONH[C(R 3) 2] p Het 1, S 2 Het 1, CHO and/or COA, Het 1 denotes dihydropyrrole, pyrrolidine, azetidine, oxetane, tetrahydroimidazole, dihydropyrazole, tetrahydropyrazole, tetrahydrofuran, dihydropyridine, tetrahydropyridine, piperidine, morpholine, hexahydropyridazine, hexahydropyrimidine, [1,3]dioxolan, tetrahydropyran or piperazine, which is unsubstituted or mono- or disubstituted by Hal, CN, OH, OA, COOA, CONH 2, S 2 A, S 2 Ar, COA, A and/or =O, A denotes unbranched or branched alkyl with 1-10 C-atoms, wherein one or two non-adjacent CH- and/or CH 2 -groups may be replaced by N-, O- and/or S-atoms and wherein 1-7 H-atoms may be replaced by F or Cl, R 3 denotes H or alkyl with 1, 2, 3 or 4 C-atoms, Hal denotes F, Cl, Br or I, n denotes 1, 2, 3, 4 or 5, m denotes 1, 2 or 3, p denotes 0, 1, 2, 3 or 4, and pharmaceutically acceptable solvates, salts, tautomers and stereoisomers thereof, including mixtures thereof in all ratios. X denotes N or CH, Y denotes Het-diyl or Ar, Q 1 denotes (CH 2) n, O(CH 2) n or (CH 2) n Het 1 -diyl, M denotes (CH 2) p NR 3 CO, CONR 3, NR 3 or CO, Q 2 denotes (CH 2) n O or (CH 2) n, B denotes Ar or Het-diyl, Het denotes furan, thiophene, pyrrole, imidazole, pyrazole, oxazole, isoxazole, oxadiazole, thiazole, triazole, tetrazole, pyridine, pyrimidine, pyridazine, pyrazine, indole, isoindole, indoline, benzimidazole, indazole, quinoline, isoquinoline, benzoxazole, 1,3-benzodioxole, benzothiophene, benzofuran, imidazopyridine, dihydroindole, quinoxaline, benzo[1,2,5]thiadiazole or furo[3,2-b]pyridine, each of which is unsubstituted or mono- or disubstituted by Hal, A, [C(R 3) 2] p OR 3, [C(R 3) 2] p N(R 3) 2, [C(R 3) 2]pHet 1, NO 2, CN, [C(R 3) 2] p COOR 3, CON(R 3) 2, NR 3 COA, NR 3 SO 2 A, SO 2 N(R 3) 2, S n A, COHe t 1, O[C(R 3) 2] m N(R 3) 2, O[C(R 3) 2] p Het 1, NHCOOA, NHCON(R 3) 2, NHCOO[C(R 3) 2] m N(R 3) 2, NHCOO[C(R 3) 2] p Het 1, NHCONH[C(R 3) 2] m N(R 3) 2, NHCONH[C(R 3) 2] p Het 1, OCONH[C(R 3) 2] m N(R 3) 2, OCONH[C(R 3) 2] p Het 1, CHO, COA, =S, =NR 3 and/or =O, Ar denotes phenylene, which is unsubstituted or mono-, di- or trisubstituted by Hal, A, [C(R 3) 2] p OR 3, O[C(R 3) 2] p OR 3, [C(R 3) 2] p N(R 3) 2, O[C(R 3) 2] p N(R 3) 2, [C(R 3) 2] p Het 1, NO 2, CN, [C(R 3) 2] p COOR 3, O[C(R 3) 2] p COOR 3, CON(R 3) 2, NR 3 COA, NR 3 SO 2 A, SO 2 N(R 3) 2, S 2 A, COHet 1, O[C(R 3) 2] p Het 1, NHCOOA, NHCON(R 3) 2, NHCOO[C(R 3) 2] m N(R 3) 2, NHCOO[C(R 3) 2] p Het 1, NHCONH[C(R 3) 2] m N(R 3) 2, NHCONH[C(R 3) 2] p Het 1, OCONH[C(R 3) 2] m N(R 3) 2, OCONH[C(R 3) 2] p Het 1, S 2 Het 1, CHO and/or COA, Het 1 denotes dihydropyrrole, pyrrolidine, azetidine, oxetane, tetrahydroimidazole, dihydropyrazole, tetrahydropyrazole, tetrahydrofuran, dihydropyridine, tetrahydropyridine, piperidine, morpholine, hexahydropyridazine, hexahydropyrimidine, [1,3]dioxolan, tetrahydropyran or piperazine, which is unsubstituted or mono- or disubstituted by Hal, CN, OH, OA, COOA, CONH 2, S 2 A, S 2 Ar, COA, A and/or =O, A denotes unbranched or branched alkyl with 1-10 C-atoms, wherein one or two non-adjacent CH- and/or CH 2 -groups may be replaced by N-, O- and/or S-atoms and wherein 1-7 H-atoms may be replaced by F or Cl, R 3 denotes H or alkyl with 1, 2, 3 or 4 C-atoms, Hal denotes F, Cl, Br or I, n denotes 1, 2, 3, 4 or 5, m denotes 1, 2 or 3, p denotes 0, 1, 2, 3 or 4,