<P> A cell wall is a structural layer surrounding some types of cells, situated outside the cell membrane . It can be tough, flexible, and sometimes rigid . It provides the cell with both structural support and protection, and also acts as a filtering mechanism . Cell walls are present in most prokaryotes (except mycoplasma bacteria), in algae, plants and fungi but rarely in other eukaryotes including animals . A major function is to act as pressure vessels, preventing over-expansion of the cell when water enters . </P> <P> The composition of cell walls varies between species and may depend on cell type and developmental stage . The primary cell wall of land plants is composed of the polysaccharides cellulose, hemicellulose and pectin . Often, other polymers such as lignin, suberin or cutin are anchored to or embedded in plant cell walls . Algae possess cell walls made of glycoproteins and polysaccharides such as carrageenan and agar that are absent from land plants . In bacteria, the cell wall is composed of peptidoglycan . The cell walls of archaea have various compositions, and may be formed of glycoprotein S - layers, pseudopeptidoglycan, or polysaccharides . Fungi possess cell walls made of the glucosamine polymer chitin . Unusually, diatoms have a cell wall composed of biogenic silica . </P>

Why is it important for plant cells to have a cell wall
find me the text answering this question