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.