Oligoetherols based on pyrimidine ring were obtained upon reaction of barbituric acid with glycidol and alkylene carbonates. These oligoetherols were then used to obtain polyurethane foams in the reaction of oligoetherols with isocyanates and water. The protocol of foam synthesis was optimized by the choice of proper kind of oligoetherol and synthetic composition. The thermal resistance was studied by dynamic and static methods with concomitant monitoring of compressive strength. The polyurethane foams have similar physical properties as the classic ones except their enhanced thermal resistance. They stand long-time heating even at 200°C. Moreover thermal exposition of foams results generally in increase of their compressive strength.