A fly has two compound eyes, each of which is composed of 3,000 to 6,000 individual eyes. The fly can perceive motions coming from the left, right, front, and above thanks to these tiny pictures that are created by its eyes.

Like humans, flies cannot focus on a specific item or see in a single, continuous field of vision. Instead, each straightforward sight creates a view, which they then combine like a mosaic.

In addition to the three compound eyes, flies have three additional simple eyes, or ocelli. To help the fly determine which way is up, the ocelli function like a compass. They function by assisting the fly travel in the direction of the sun.