The invention relates to a preparation method of an alkyl - dimethoxy (phosphorus heterocycle) silane compound as a fire retardant. The structure of the compound is shown in the following formula (as shown in the description), wherein R is equal to methyl, ethyl, propyl or butyl. The preparation method comprises the following steps of using nitrogen for replacing air in a reactor, controlling the molar ratio of 1-oxo methyl-4-ethyl -4-methylol-2,6-dioxa-1-phosphorus heterocycle hexane to alkyl group trimethoxysilane to be 1:1 to 1:1.4, and performing a reaction at 80-130 DEG C in an organic solvent; controlling the top temperature of a fractionating column to be equal to or lower than 65 DEG C, and performing a fractional distillation reaction for 6-13 hours until no methanol is generated; and through purification treatment, obtaining alkyl-dimethoxy (phosphorus heterocycle) silane. The product disclosed by the invention is high in flame resistant efficiency, good in carbon forming performance, good in plasticity, and suitable for being used as the fire retardant of materials of polyester PBT, PET, polyurethane, unsaturated resins, epoxy resins, polyvinyl chloride and the like. The production technology is simple, the equipment investment is low, and the industrialized production is easy to realize.