Spina bifida is a congenital condition that affects the development of the spinal cord and spine. It occurs when the neural tube fails to close properly during pregnancy.