The compound eyes of arthropods like insects, crustaceans and millipedes are composed of units called ommatidia (singular: ommatidium). An ommatidium contains a cluster of photoreceptor cells surrounded by support cells and pigment cells. The outer part of the ommatidium is overlaid with a transparent cornea. Each ommatidium is innervated by one axon bundle (usually consisting of 6-9 axons, depending on the number of rhabdomeres) and provides the brain with one picture element. The brain forms an image from these independent picture elements. The number of ommatidia in the eye depends upon the type of arthropod and may be as low as 5 as in the Antarctic isopod Glyptonotus antarcticus  or range from just a handful in the primitive Zygentoma to around 30 thousand in larger Anisoptera dragonflies as well as in some Sphingidae moths.
Ommatidia are typically hexagonal in cross section and approximately ten times longer than wide. The diameter is largest at the surface, tapering toward the inner end. At the outer surface there is a cornea, below which is a pseudocone that acts to further focus the light. The cornea and pseudocone form the outer ten percent of the length of the ommatidium.
The inner 90% of the ommatidium contains 6 to 9 (depending on the species) long and thin photoreceptor cells in the case of some butterflies often abbreviated "R cells" in literature and often numbered, e.g. R1 through R9. These "R cells" tightly pack the ommatidium. The portion of the R cells at the central axis of the ommatidium collectively form a light guide, a transparent tube, called the rhabdom.
In true flies, the rhabdom has separated into seven independent rhabdomeres (there are actually eight, but the two central rhabdomeres responsible for color vision sit one atop the other), such that a small inverted 7-pixel image is formed in each ommatidium. Simultaneously, the rhabdomeres in adjacent ommatidia are aligned such that the field of view within an ommatidium is the same as that between ommatidia. The advantage of this arrangement is that the same visual axis is sampled from a larger area of the eye, thereby increasing sensitivity by a factor of seven, without increasing the size of the eye or reducing its acuity. Achieving this has also required the rewiring of the eye such that the axon bundles are twisted through 180 degrees (re-inverted), and each rhabdomere is united with those from the six adjacent ommatidia that share the same visual axis. Thus, at the level of the lamina - the first optical processing center of the insect brain - the signals are input in exactly the same manner as in the case of a normal apposition compound eye, but the image is enhanced. This visual arrangement is known as neural superposition.
Since an image from the compound eye is created from the independent picture elements produced by ommatidia, it is important for the ommatidia to react only to that part of the scene directly in front of them. To prevent light entering at an angle from being detected by the ommatidium it entered, or by any of the neighboring ommatidia, six pigment cells are present. The pigment cells line the outside of each ommatidium. Each pigment cell is situated at the apex of the hexagons and thus lines the outside of three ommatidia. Light entering at an angle passes through the thin cross-section of the photoreceptor cell, with only a tiny chance of exciting it, and is absorbed by the pigment cell, before it can enter a neighboring ommatidium. In many species, in low-light situations, the pigment is withdrawn, so that light entering the eye might be detected by any of several ommatidia. This enhances light detection but lowers resolution.
The size of the ommatidia varies according to species, but ranges from 5 to 50 micrometres. The rhabdoms within them may cross-section at least as small as 1.x micrometres, the category of "small" being assigned in some cross-species studies to those under 2 micrometers. A microlens array can be seen as an elementary, biomimetic analogy of ommatidia.
- Muller, C; Sombke, A; Rosenberg, J (2007). "The fine structure of the eyes of some bristly millipedes (Penicillata, Diplopoda): Additional support for the homology of mandibulate ommatidia". Arthropod Structure & Development. 36 (4): 463–76. doi:10.1016/j.asd.2007.09.002.
- Land, Michael F. and Nilsson, Dan-Eric. Animal Eyes, Second Edition. Oxford University Press, 2012. p. 162. ISBN 978-0-19-958114-6.
- Meyer-Rochow, Victor Benno. "The divided eye of the isopod Glyptonotus antarcticus: effects of unilateral dark adaptation and temperature elevation". Proceedings of the Royal Society of London. B215: 433–450.
- Common, I. F. B. (1990). Moths of Australia. Brill. p. 15. ISBN 978-90-04-09227-3.
- Briscoe, A. D. (2008). "Reconstructing the ancestral butterfly eye: Focus on the opsins". Journal of Experimental Biology. 211 (11): 1805–13. doi:10.1242/jeb.013045. PMID 18490396.
- Land, Michael F. and Nilsson, Dan-Eric. Animal Eyes, Second Edition. Oxford University Press, 2012. pp. 163-164. ISBN 978-0-19-958114-6.
- Land, Michael F. (1997). "Visual Acuity in Insects". Annual Review of Entomology. 42: 147–77. doi:10.1146/annurev.ento.42.1.147. PMID 15012311.