The ER has three main functions: production of lipids such as phospholipids and cholesterol, detoxification of drugs and other foreign molecules through enzymes called cytochrome P450 monooxygenases, and secretion of proteins into the bloodstream via vesicles.