The exact cause of congenital spinal deformities is often unknown, but they are generally due to genetic and environmental factors. During the first 6 weeks of embryonic development, the spine forms. Any disruption in this process can lead to congenital deformities. Factors such as maternal diabetes, exposure to certain drugs, and lack of prenatal vitamins like folic acid have been associated with these conditions.