The process of the structure formation for thermostable crosslinked polymer obtained from the mixture of thermoreactive oligomers: thermostable polyaminoimide and less thermostable urea-formaldehyde oligomer has been studied. From IR-spectra, solgel analysis, mass spectrometry and bond energy calculation the interaction between urea-formaldehyde oligomer and polyaminoimide in the course of thermal treatment of the oligomers mixture resulting in the formation of the "'hybride" structure of chemically bound networks having the higher thermal stability comparing with initial polymers was shown.