Acid phosphatase is an enzyme that frees attached phosphoryl groups from other molecules during digestion. It can be further classified as a phosphomonoesterase. It is stored in lysosomes and functions when these fuse with endosomes, which are acidified while they function; therefore, it has an acid pH optimum. This enzyme is present in many animal and plant species.