The nucleus is one of the most important structures in living organisms.
The nucleus controls when the cell produces what proteins, as well as when and where they are produced. The nucleus also controls growth and regulates metabolism.
Thus, the function of the nucleus is the total control of the cell.