Chitosan is produced commercially by deacetylation of chitin, which is the structural element in the exoskeleton of crustaceans and cell walls of fungi. In industrial processing, chitin is extracted from crustaceans by acid treatment to dissolve calcium carbonate followed by alkaline extraction to solubilized proteins.