Pupil (eye)

The pupil is the opening in the centre of the eye. Light enters through the pupil and goes through the lens, which focuses the image on the retina.

The size of the pupil is controlled by muscles. There is a circular group, which squeezes the iris smaller, and another group which pulls the iris wider. When more light is needed, the pupil is made larger. In brighter light, the pupil is made smaller. The pupil can be compared with the aperture of a camera. It is surrounded by the iris which is the colored part of the eye.

The lens changes its shape depending on how far away the eye focuses. The focus point is where the eye is focusing on. The light makes the pupil change its size. When it is darker, the pupils will dilate (get bigger) because they need to allow more light into the eye to see. When it is bright, the pupil will constrict (get smaller) to restrict the amount of light there is getting into the eye so we can see. The pupil is normally black in most animals, but in some reptiles, it can be a different colour.

The main reason why we have a pupil is to regulate the light which travels to the retina. The reason why it has no colour is because the light that travels through the pupil is absorbed by the tissues in the inside of the eye. In humans, the pupil is round, but in some other animals, like cats, it is shaped like a slit.

Pupils and health 
In humans, the pupils can tell us many things about how healthy a person's brain is.  For example:

Size 
Normal pupils are about 4mm across.  Pupils that are a normal size are called "regular."

Pupils that are both "pinpoint" (the size of the point of the end of a pin - about 1mm across) are a sign that a person may have one of these problems:
 They have overdosed on an opiate (like heroin or oxycodone)
 They have been poisoned with a type of chemical called an organophosphate, which includes things like some pesticides as well as nerve gases like sarin
 They are bleeding in a part of their brainstem called the pons (this is very rare)

A person's pupils may also be smaller than usual if they are in very bright light.

Pupils that are both "dilated" (larger than usual, up to 8mm across) are a sign that a person may have one of these problems:
 They are hypoxic (their brain is not getting enough oxygen)
 They have used illegal drugs like methamphetamine, LSD, marijuana, or Ecstasy
 The person has died

A person's pupils may also be dilated if they are in a dark place, or if they have used some kinds of eyedrops.

Equality
In most healthy people, the pupils should be the same size ("equal").  Pupils that are "unequal" (one is bigger than the other) are usually a sign that something is wrong with the brain.  For example, their brain may be injured, or they may have had a stroke.

However, up to 20% of healthy people have pupils that are different sizes.  In these people, this is normal and does not signal a problem.  Usually, there is only a small difference in size.

Shape
Healthy pupils are round.  When one pupil is a different shape, usually the person has had an injury to the eye.

Reactivity
When a light is shined in one pupil, both pupils should get smaller at the same time.  When the light is taken away, both pupils should get bigger at the same time.  This is called being "light-reactive" (the pupils are reacting to changes in light).

If both pupils change size at the same time, but the change happens slowly, the pupils are called "sluggish."  This can be a sign of illegal drug use, hypoxia (not getting enough oxygen to the brain), or injury.

If only one pupil changes size, there is usually a problem with the brain, or with the optic nerve (the nerve that runs from the brain to the eye).

If neither pupil changes shape when light is shined in it, the pupils are called "fixed."  This is a sign of a very serious brain problem.  The brain is supposed to make the pupils change shape, so if this is not happening, it means the brain is not working normally.  When a person is in a coma or has died, their pupils will be both fixed and dilated (large).

Healthy pupils
Since the brain controls the pupils, healthy pupils are one sign of a healthy brain.  Medical professionals describe healthy pupils with the abbreviation PERRL:
 Pupils are
 Equal,
 Round,
 Regular, and
 Light-reactive

References

Eye anatomy