What is the main function of the cell wall The answer to this question is that it surrounds the cell membrane and provides these cells structural support and protection. In addition, the cell wall acts as a filtering mechanism. A major function of the cell is to act as a pressure vessel, preventing over expansion when water enters the cell.