Urea is an organic compound with chemical formula CO(NH2)2. It has two âNH2 groups joined by a carbonyl (C=O) functional group. Urea serves an important role in the metabolism of nitrogen-containing compounds by animals and is the main nitrogen-containing substance in the urine of mammals.