Three-dimensional heterocyclic polymers can be obtained by the migration copolymerization of bis-imides of unsaturated dicarboxylic acids and such nucleophiles as diamines, bisphenols and bismercaptans. As-obtained nitrogen-containing heat-resistant polymers are of practical interest due to their high performance and the availability of the feedstock. In this work, we propose to obtain heat-resistant polymeric materials through the synthesis of oligobenzotriazolylimides by interaction of bis-maleimides with benzotriazoles. One-stage melt synthesis producing no by-products and requiring no organic solvents seems to be the most suitable method from the technological and environmental standpoint. Optimal conditions for the synthesis of polymers were determined using the method of compositional orthogonal planning. Reduced viscosity was chosen as the optimization parameter; the initial concentration of monomers, as well the duration and temperature of synthesis, were the variable factors affecting the optimization parameter. The structure, properties and mechanical characteristics of the obtained polymers were studied. The structure of oligomers and polymers was confirmed by IR and NMR spectroscopy data. A series of experiments was carried out to investigate the potential of extrusion-rolling casting technology for obtaining composite materials based on oligobenzotriazolylimides. This technology maintains initial substances in a fluid state for an extended period of time. The slower curing rate of oligomers facilitates the dissipation of the heat released during structuring, thus causing no local overheating of the material and resulting mechanical stresses. This improves the technological and physical-mechanical characteristics of the composites based on these oligomers. Optimal conditions for the production of polymer composites were identified, and their physical and mechanical properties were studied. A technology was proposed for obtaining materials resistant to aggressive media and temperature drops.