Tumors, especially those of the pituitary gland, can put pressure on the optic nerve causing various forms of visual loss. Similarly, cerebral aneurysms (swelling of blood vessels) can also affect the nerve.