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 present in most prokaryotes (except mollicute bacteria), in algae, fungi and eukaryotes including plants but are absent in animals. A major function is to act as pressure vessels, preventing over-expansion of the cell when water enters.