The invention discloses a method for preparing methylene carbonic ester by using an enzymic method, which belongs to the field of biochemical engineering, and. The method for preparing the methylene carbonic ester comprises the following steps: adding diol and dimethyl carbonate in a mole ratio of 1:(1-20) into a reaction container taking an ion liquid as a reaction medium or without a solvent, further adding candida antarctica lipase B which accounts for 1-25% of the total mass of the diol and dimethyl carbonate, stirring for reaction in air for 1-160 hours at 25-75 DEG C, performing transesterification reaction, and after the reaction, treating to obtain a product, namely, the methylene carbonic ester. The method has the advantages of high conversion rate, high selectivity, high universality, simple process, environment-friendliness and the like.