Spinal stenosis is a condition that causes your spine to narrow. This puts pressure on your nerves and spinal cord. It can cause pain in your back and legs.