Lipids are produced in the endoplasmic reticulum and the Golgi apparatus. The endoplasmic reticulum is responsible for the synthesis of fatty acids and phospholipids, while the Golgi apparatus is responsible for the packaging and secretion of lipids.