The cell wall is a tough, flexible and sometimes rigid layer that surrounds some types of cells. It surrounds the cell membrane and provides these cells with structural support and protection. In addition, the cell wall acts as a filtering mechanism.he cell wall is a tough, flexible and sometimes rigid layer that surrounds some types of cells. It surrounds the cell membrane and provides these cells with structural support and protection. In addition, the cell wall acts as a filtering mechanism.