Alkaloids are a group of naturally occurring chemical compounds that contain mostly basic nitrogen atoms. 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.