Optical illusions work because the brain does not record reality perfectly. It interprets visual information based on patterns, expectations, and context. Artists such as M. C. Escher used these habits to create impossible scenes, while desert mirages show how heat can distort light and fool the eye.