A medicine for preventing and/or treating multiple sclerosis, particularly pain such as neuropathic pain associated with multiple sclerosis and the like, said medicine containing, as an active ingredient, a compound having an antagonistic activity on P2X4 receptors, e.g., a compound represented by general formula (IH), or a salt of the compound, or a hydrate or solvate of the compound or the salt.