Al-Haitam was born in Basra, in southern Mesopotamia, around 965, but worked in Cairo. His extant books include Optics, The Light of the Moon, The Halo and the Rainbow, On Paraboloidal Burning Mirrors, The Formation of Shadows, The Light of the Stars, Discourse on Light, The Burning Sphere, and The Shape of the Eclipse. He correctly attributed the bending of light in refraction to the change in the speed of light when it passes from one medium to another, and found experimentally that the angle of refraction is proportional to the angle of incidence only for small angles.