There are many known causes of cystoid macular edema. These include: Eye surgery, including cataract surgery and repair of a detached retina Diabetes Age-related macular degeneration Blockage in veins of the retina (e.g., retinal vein occlusion) Inflammation of the eye Injury to the eye Side effects of medications