The invention discloses a method for synthesizing UDP-
galactose and a method for synthesizing a galactosyl compound, and belongs to the technical field of bioengineering. The invention relates to a method for generating UDP-
galactose by catalyzing UTP, ATP and D-
galactose through a thermophilic 
enzyme method two-step reaction. The method comprises the following two steps: i) taking D-galactose and ATP as substrates, and catalytically synthesizing 1-P-Gal (1-
phosphate-galactose) by using thermophilic 
galactokinase TTHA0595; and (ii) by taking the 1-P-Gal and the UTP as the substrates, carrying out catalytic synthesis on the UDP-galactose by using the thermophilic UDP-glucose pyrophosphorylase TTE0732. The synthesized UDP-galactose is used as a 
glycosyl donor, and thermophilic galactosyl 
transferase TON1857 can be used for further catalyzing substrate compounds such as 
vanillin, p-
nitrophenol or silybin to synthesize the galactosyl compound, so that the method for synthesizing the galactosyl compound by the thermophilic 
enzyme method is constructed.