Ureas in the more general sense can be accessed in the laboratory by reaction of phosgene with primary or secondary amines:
These reactions proceed through an isocyanate intermediate. Non-symmetric ureas can be accessed by the reaction of primary or secondary amines with an isocyanate.
Urea can also be produced by heating ammonium cyanate to 60 °C.