The invention discloses a preparation method for a regular-hexagonal-prism-shaped magnesium-doped zinc oxide film. The microstructure of the magnesium-doped zinc oxide film is in the shape of a regular hexagonal prism, and possesses the advantages that the crystallization degree is high and surface defects are less. The preparation method of the film comprises separately dissolving zinc acetate, magnesium acetate, triethanolamine and ammonia water in a mixture of glycol and ice water, getting proper amount of the solution and a cleaned substrate, transferring into a teflon inner container of a hydrothermal kettle for hydrothermal reaction, after the reaction is finished, performing washing, drying and annealing processing on the substrate, so as to prepare a layer of the regular-hexagonal-prism-shaped magnesium-doped zinc oxide film on the substrate. The preparation method is simple in technology, good in repeatability, low in cost, strong in controllability, low in synthesis temperature, green and friendly to environment. The obtained product is in the shape of a regular hexagonal prism, is good in crystallinity, high in purity, less in surface defects, uniform in morphology distribution and consistent in orientation, and possesses potential application prospect and scientific research value in the fields of photoelectric materials new energy.