Osteopetrosis is caused by underlying mutations that interfere with the acidification of the osteoclast resorption pit, for example due to a deficiency of the carbonic anhydrase enzyme encoded by the CA2 gene. Carbonic anhydrase is required by osteoclasts for proton production. Without this enzyme hydrogen ion pumping is inhibited and bone resorption by osteoclasts is defective, as an acidic environment is needed to dissociate calcium hydroxyapatite from the bone matrix. As bone resorption fails while bone formation continues, excessive bone is formed.