The invention discloses glass cement and a preparation method thereof. The glass cement is prepared from the following components: 2-ethyl cyanoacrylate, polyvinyl butyral, soft butadiene styrene rubber, diethylamino ethyl methylacrylate, carnauba wax, an anti-oxidant, stearic acid, sodium silicate, silicon dioxide, polyethylene glycol and aluminum oxide. A preparation process comprises the following steps: uniformly mixing the 2-ethyl cyanoacrylate, the soft butadiene styrene rubber, the polyvinyl butyral and the carnauba wax, thus obtaining a mixture I; then transferring the mixture I into a reaction kettle, adding the diethylamino ethyl methylacrylate, the sodium silicate, the silicon dioxide and the aluminum oxide, and heating and reacting under a vacuum condition, thus obtaining a mixture II; finally, adding the anti-oxidant, the stearic acid and the polyethylene glycol into the mixture II, and uniformly stirring and mixing, thus obtaining the glass cement. The glass cement provided by the invention has good adhesion performance and good light aging resistance, and can be well applied to glass adhesion.