The invention relates to the field of grating processing, and particularly relates to a grating and a preparation method thereof. The preparation method of the grating comprises the following steps: (A) putting raw materials for preparing the grating into a mold, and compressing by the mold, wherein the mold comprises an upper mold and a lower mold; (B) carrying out compression molding, controlling the molded surface temperature of the upper mold to be 135-145 DEG C, controlling the molded surface temperature of the lower mold to be 140-150 DEG C, controlling the pressure to be 10-15MPa and controlling the running dwell time to be 400-600s; and (C) opening the mold to take out a product out subjected to compression molding, polishing the upper surface and the lower surface of the product, thereby preparing the grating. Compared with the preparation method of the grating in the prior art, the preparation method of the grating, which is provided by the invention, has the advantages that the grating is prepared by adopting the double-sided mold, and the demolding force is distributed to front and rear sides by demolding double sides after molding, so that the grating is stressed uniformly; according to the preparation method, the product defective rate is reduced greatly, and the product quality is high.