The invention provides a fluorination process of 1,3-dioxolame ester or 1,3-dioxane ester containing perfluorinated compounds. The process comprises the following steps of putting a first fluorinationsolvent and a catalyst into a reaction kettle, wherein the catalyst is selected from one or several of boron trifluoride, cobalt trifluoride, bismuth trifluoride and arsenic trifluoride; dissolving ahydrocarbon substrate and a surfactant in a second fluorination solvent to obtain a raw material solution, wherein the surfactant is selected from one or several of perfluorononanoic acid, perfluorooctane sulfonate and tetrabutylammonium fluoride, and the hydrocarbon substrate is of a structure of a formula (I) or a formula (II); performing fluorination reaction on the raw material liquid and fluorine gas in the reaction kettle to obtain the perfluorinated compounds. In the specific fluorine-containing solvent, the low-cost hydrocarbon compounds are used as starting raw materials; the specialfluorine-containing surfactants and catalysts are used as the assistance so that the fluorine gas and the raw materials are in direct contact to be converted into the perfluorinated compounds. The method is simple; the cost is low; meanwhile, the yield is high.