The invention provides an electrolyte for realizing blackening of a magnesium alloy surface and a blackening process method. A coloring solution of a silicic acid system is adopted, and the coloring solution comprises additives such as ferric ammonium citrate and the like. In the coloring process, a magnesium alloy is subjected to down-current two-step constant-current micro-arc oxidation treatment in a prepared micro-arc oxidation solution to prepare a black ceramic membrane. In order to further improve the corrosion resistance and the stability of a membrane layer, hole sealing treatment iscarried out in hole sealing liquid. The coloring micro-arc oxidation solution is safe, environmentally friendly and high in stability, by optimizing a micro-arc oxidation manner, positive and negativecurrent density parameters are adjusted, self-repairing hole sealing is carried out on the interior of the membrane layer, the problems that the surface is loose and porous, and the thickness of a compact inner layer is small are solved, membrane layer compactness control is achieved, the membrane layer is thicker and more compact, finally the hole sealing liquid is good in stability, the influence on the color of the membrane layer does not exist, and the corrosion resistance is improved. By means of the technology, blackening treatment of the magnesium alloy is achieved, and the applicationfield of the magnesium alloy is broadened.