Optic nerve compression occurs when a mass (like a tumor or a build-up of pus or other fluid) forms in the brain and presses on the optic nerve, causing eye pressure. It may cause vision problems and can lead to blindness.