What is the role of the cell wall? It acts as a framework inside the endoplasmic reticulum and keeps it from collapsing. It creates a permeable barrier for some substances to enter or leave the cell. It provides energy and helps to move molecules throughout the cell. It keeps the DNA safely enclosed in the nucleus and holds the nucleus together.