The cell wall provides structural support and prevents the cell from completely collapsing during plasmolysis. It also prevents the cell from bursting when water re-enters during deplasmolysis.