A cell wall is a structural layer surrounding some types of cells, just 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 absent in many eukaryotes, including animals, but are present in some other ones like fungi, algae and plants, and in most prokaryotes (except mollicute bacteria). A major function is to act as pressure vessels, preventing over-expansion of the cell when water enters.
The composition of cell walls varies between taxonomic group and species and may depend on cell type and developmental stage. The primary cell wall of land plants is composed of the polysaccharides cellulose, hemicelluloses 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 N-acetylglucosamine polymer chitin. Unusually, diatoms have a cell wall composed of biogenic silica.
A plant cell wall was first observed and named (simply as a "wall") by Robert Hooke in 1665. However, "the dead excrusion product of the living protoplast" was forgotten, for almost three centuries, being the subject of scientific interest mainly as a resource for industrial processing or in relation to animal or human health.
In 1804, Karl Rudolphi and J.H.F. Link proved that cells had independent cell walls. Before, it had been thought that cells shared walls and that fluid passed between them this way.
The mode of formation of the cell wall was controversial in the 19th century. Hugo von Mohl (1853, 1858) advocated the idea that the cell wall grows by apposition.