The endoplasmic reticulum (ER) comprises folded membranes continuous with the nuclear membrane.
 
Rough ER has embedded ribosomes and is involved in protein synthesis. Smooth ER has no ribosomes and is involved in lipid and carbohydrate synthesis as well as detoxification of chemicals.