An organelle, containing folded membranes and sacs, responsible for production, processing, and transportation of materials for use inside and outside a eukaryotic cell. There are two forms of this organelle: rough ER that has surface ribosomes and participates in the synthesis of proteins mostly destined for export by the cell and smooth ER that has no ribosomes and participates in the synthesis of lipids and steroids as well as the transport of synthesize macromolecules.