The invention relates to an ionic liquid type hydrate inhibitor. The inhibitor is a dilute solution or a mixture prepared by dissolving one ionic liquid, two ionic liquids or more than two ionic liquids in a solvent; the ionic liquid is added to a solvent The mass concentration is 0.005~0.05wt%; the ionic liquid is composed of organic cations and organic or inorganic anions in a molar ratio of 1:1 combined by ionic bonds; the solvents are water, brine, alcohols and their mixtures, because the inhibitor has a unique The unit structure can form steric hindrance and electric barrier steric hindrance to the formation of clathrate hydrate in the fluid, which can inhibit the nucleation, growth and agglomeration of hydrate, has high inhibitory activity, and can reduce the viscosity of the fluid. Improve the fluidity of the fluid. Compared with the commonly used thermodynamic inhibitors, the inhibition performance and inhibition time are improved, the dosing dosage is greatly reduced, the dosing conditions are mild, the recovery is convenient, the solvent loss is small, and it is environmentally friendly.