The invention discloses a method for preparing cyanuric acid by using ionic liquid, and the method comprises the following steps: carrying out condensation reaction on the ionic liquid serving as a solvent and urea in vacuum, stirring and heating states, centrifuging the reaction product, and washing the obtained solid product with water to obtain crude cyanuric acid. The ionic liquid serves as a novel solvent for preparing cyanuric acid through a solvent method, urea is effectively dissolved, heat transfer efficiency is high, energy consumption is reduced, the condensation temperature is reduced to 190-210 DEG C from 220-280 DEG C of a traditional direct pyrolysis method, energy consumption is saved by 16%-24%, the yield of the prepared crude cyanuric acid is 86.6%-90.7%, the purity is 90.7%-96.4%, and the urea conversion rate is 80% or above. The operation process is reduced, the generation of wastes and the use of sulfuric acid in the subsequent refining process are reduced, the problem of solvent volatilization is solved, and the method is simple in recovery and environment-friendly.