What causes vitamin d to be low enough to be unhealthy?

Sun light exposure. A major cause of vitamin d deficiency is limited sun exposure vitamin d deficiency can be caused by not eating enough food rich in vitamin d malabsorption of vitamin d from food in the intestines. Crohn’s disease, celiac disease, and cystic fibrosis. Obesity and gastric bypass surgery .Can also lower vitamin d stores in the body.