This invention discloses a method for preparing isocyanate trimer containing silane or modified with functional linear polysiloxane. In the general chemical formula of the isocyanate trimer, R is diisocyanate-substituted methylphenyl, ethylphenyl, 1,5-naphthyl, diphenyl methane, hexamethylene, isophorone, 2,2,6-trimethyl cyclohexyl, or 4,4'-dicyclohexyl methane; R1 is saturated or unsaturated linear or branched C1-C8 alkyl, cycloalkyl, aryl or aromatic hydrocarbon homolg; R2 and R3 are C1-C6 alkyl, aryl, trialkylsilyl, or methoxyalkoxyl; a is a positive integer of 0-3; R1, R2, R3, R4 and R5 are saturated or unsaturated linear or branched C1-C12 alkyl, cycloalkyl, aryl, alkoxy or cycloalkoxy; X is -NH-, -NHCH2CH2NH-, -NHCH2CH2NHCH2CH2NH-, -N-, -NHCONH-, formula A, B or C, -S- or -O-; n is a positive integer greater than 0.