The cell wall surrounds plant, bacteria, fungi, algae and some archea cells but not animal and protozoa cells. It provides structural support and protection. The cell wall has three layers - the middle lamella, primary cell wall and sometimes a secondary cell wall. The primary cell wall contains cellulose, hemicellulose, pectin and cutin/wax. Secondary cell walls contain lignin. Cell walls are formed from the cell plate during cell division and provide shape and structure to cells while allowing for communication through pits. The main functions of the cell wall are mechanical strength, security, storage, communication and protection.