BET protein-inhibitory, especially BRD2-, BRD3- and BRD4-inhibitory, 4-substituted pyrrolo- and pyrazolodiazepines of the general formula Iare described, in which X, Y, n, m, p, R1, R2, R3, R4 and R5 are each as defined in the description, as are pharmaceutical compositions comprising the inventive compounds, and the prophylactic and therapeutic use thereof in the case of hyperproliferative disorders, especially in the case of neoplastic disorders. Also described is the use of the inventive compounds as BET protein inhibitors in benign hyperplasias, in atherosclerotic disorders, in sepsis, in autoimmune disorders, in vascular disorders, in viral infections, in neurodegenerative disorders, in inflammatory disorders and in male fertility control.