Crosslinking elastomeric polytriazines are prepared by a 4 step procedure which consists of (1) forming a poly(imidoylamidine) by the reaction, under reflux conditions, of anhydrous ammonia with certain perfluorinated alkyl or alkylether dinitriles; (2) forming a linear polytriazine by cyclizing the imidoylamidine linkages by reaction with certain perfluorinated alkyl or alkylether acid anhydrides or halides; (3) extending the linear polytriazine chain by further refluxing in anhydrous ammonia; and (4) heating to cyclize the new imidoylamidine and thereby crosslink the polymer