The exact cause of spina bifida is unknown, but it is thought to be due to a combination of genetic and environmental factors. Insufficient intake of folic acid before and during early pregnancy is a significant risk factor. Other potential factors include maternal diabetes, obesity, and certain medications.