Background Ascorbic acid (AsA) is a multi-functional molecule and plays essential roles in maintaining the normal life activities of living organisms. Although widely present in plants, the concentration of AsA varies greatly in different plant species. The GDP-L-galactose phosphorylase (GGP) is a key regulatory gene in plant AsA biosynthesis that can regulate the concentration of AsA at the transcriptional and translational levels. The function and regulation mechanisms of GGP have been well understood in previous works. However, the molecular evolutionary patterns of the gene remain unclear.Results In this study, a total of 149 homologous sequences of GGP were sampled from 71 plant species covering the major groups of Viridiplantae, including angiosperms, gymnosperms, lycophytes, bryophytes and chlorophytes, and their phylogenetic relationships, gene duplication and molecular evolution analyses were investigated. Phylogenetic analysis showed that GGP exists widely in various plants, and five major duplication events and several taxon-specific duplications were found, which led to the rapid expansion of GGP genes in seed plants, especially in angiosperms. The structure of GGP genes were more conserved in land plants, but varied greatly in green algae, indicating that GGP may have undergone great differentiation in the early stages of plant evolution. Most GGP proteins have a conserved motif arrangement and composition, suggesting that plant GGPs have similar catalytic functions. Molecular evolutionary analyses showed that plant GGP genes was predominated by strong purifying selection, indicating the functional importance and conservativeness of plant GGP genes during evolution. Most of the branches under positive selection identified by branch-site model were mainly in the chlorophytes lineage, indicating the evolutionary innovation of GGP genes also mainly occurred in the early stages of plant evolution and episodic diversifying selection contributed to the evolution of plant GGP genes.Conclusions The molecular evolutionary patterns of GGP were first systematically explored in this study. The conservative function of GGP and its rapid expansion in angiosperms may be one of the reasons for the increase of AsA content in angiosperms, enabling angiosperms to adapt to changing environments.