An N-formamidopyrazoline derivative is a compound having General Formula (I) or an enantiomer, a diastereomer, an epimer and a racemate thereof, or a pharmaceutically acceptable salt thereof. The compound is an antagonist of a ligand-gated non-selective cation channel receptor subtype P2X3, and can be used for treating or preventing various diseases mediated by the receptor P2X3.