Sometimes the nerves get compressed because of narrowing of the openings they go through. These openings include the spinal canal and the foramina. When the nerves are compressed through these openings, it is known as spinal stenosis.