The present invention relates to a diazepine derivative represented by the following general formula (I) (in the formula, R 1 and R 2 represent hydrogen atom and the like, or R 1 and R 2 bind together to form a naphthalene ring and the like together with the benzene ring to which they bind, R 3 and R 4 represent hydrogen atom and the like, R 5 represents hydrogen atom and the like, R 6 and R 7 represent hydrogen atom and the like, X represents C, CH or N, Y represents N, NH or C(=O), provided that when X is N, Y is not N or NH, and when X is C or CH, Y is not C(=O), Z represents oxygen atom or sulfur atom, A represents benzene ring and the like, B represents NHC(=O) and the like, D represents an atomic bond and the like, E represents an atomic bond and the like, G represents benzene which may be substituted and the like, and m represents an integer of 0 to 5) or a pharmacologically acceptable salt thereof, and a P2X4 receptor antagonist.