The nucleus is the part of the cell that contains DNA and controls the activities of the cell, including gene expression, duplicating DNA, and passing on hereditary traits.