A cell wall is a tough, flexible and sometimes fairly rigid layer that surrounds some types of cells. It is located outside the cell membrane and provides these cells with structural support and protection, and also acts as a filtering mechanism. A major function of the cell wall is to act as a pressure vessel, preventing over-expansion when water enters the cell. They are found in plants, bacteria, fungi, algae, and some archaea. Animals and protozoa do not have cell walls.