If water is present in the reaction mixture (it is often added intentionally to make foams), the isocyanate reacts with water to form a urea linkage and carbon dioxide gas and the resulting polymer contains both urethane and urea linkages.
The balance between gellation and blowing is sensitive to operating parameters including the concentrations of water and catalyst.