The nucleus is a two-layered structure. It is a double membrane-enclosed structure found in eukaryotic cells. It contains most of the cell's genetic material. The function of the nucleus is to maintain the integrity of the genes and to control the activities of the cell by regulating gene expression.