The invention relates to a phosphorus-silicon synergistic flame retardant with a hyperbranched structure and a preparation method thereof. A kind of flame retardant with a hyperbranched structure is obtained by reacting alkoxysilane, trialkoxy phosphate and glycol according to a certain molar ratio. Phosphorus-silicon synergistic flame retardants. Hyperbranched phosphorus-silicon synergistic flame retardants containing different functional groups such as hydroxyl groups, phosphate groups, chloropropyl groups, mercaptopropyl groups, and epoxy groups at the end positions can be prepared by adjusting the ratio of raw materials. The flame retardant belongs to an organic flame retardant, has good compatibility with polymer materials, and has a wide range of applications, and can be used for the treatment of paper, cloth, fiber, plastic, resin, etc. The reaction process of the method of the invention does not use solvents and catalysts, meets the development requirements of green chemistry, and has short reaction time. All process parameter chains participating in the reaction are reasonable and can complete the reaction, so as to achieve the purpose and effect of the present invention.