Ibn al-Haytham was born around the year 965 in Basra, a city in what is now Iraq. Later he worked in Cairo, Egypt, and he died around 1040. In Europe he was sometimes called Alhazen, a Latin form of his name.
In his time, many people had different ideas about sight. Some thought that the eyes send out rays that touch the things we look at. Ibn al-Haytham disagreed. He explained that light bounces off objects and travels into the eye. That is why we cannot see in a completely dark room.
He wrote down his ideas in the Book of Optics, which took him about ten years. To test them, he did experiments. In one, he let light come through a tiny hole into a dark room. The light made a picture on the opposite wall, and the picture was upside down. A device that works this way is called a camera obscura, and it is an ancestor of the camera.
Ibn al-Haytham believed that a claim should be tested and not simply accepted because a famous person had said it. His Book of Optics was translated into Latin and was read in Europe for hundreds of years. Many historians call him one of the pioneers of the scientific method.