The primary function of the nucleus is to store and protect the cell’s genetic material (DNA) and regulate gene expression, directing key processes such as metabolism and cell division. The nucleus coordinates cellular activities by controlling which genes are activated at any given time, ensuring the cell responds appropriately to its environment.