The cell wall is a rigid, protective layer that surrounds the cells of plants, algae, fungi, and some bacteria. It provides structural support and protection for the cell, and also helps maintain the shape of the cell.
The cell wall is primarily composed of cellulose, a complex carbohydrate that forms long, fibrous chains. In addition to cellulose, the cell wall may also contain other polysaccharides, proteins, and inorganic compounds like calcium carbonate.
While plant cell walls are primarily made of cellulose, the cell walls of fungi contain chitin, a tough, nitrogen-containing polysaccharide. Bacterial cell walls can be classified into two main types: those with a peptidoglycan layer (gram-positive bacteria) and those with both peptidoglycan and an outer membrane (gram-negative bacteria).