The rough ER has ribosomes bound to it and so plays a role in the synthesis of proteins that are either membrane proteins or that will be found in lysosomes or exported from the cell.
The smooth ER plays a major role in lipid synthesis and in the synthesis of membrane lipids.