A linear polysaccharide of beta-1->4 linked units of acetylglucosamine. It is the second most abundant biopolymer on earth, found especially in insects and fungi. When deacetylated it is called chitosan.