A deficiency in vitamin D results in poor mineralization of the bones of the skeleton, causing rickets in children and osteomalacia in adults.