The primary function of the Golgi apparatus is to process and package macromolecules, such as proteins and lipids, after their synthesis and before they make their way to their destination; it is particularly important in the processing of proteins for secretion.