Heterostyly is a unique form of polymorphism and herkogamy in flowers. In a heterostylous species, two or three morphological types of flowers, termed "morphs", exist in the population. On each individual plant, all flowers share the same morph. The flower morphs differ in the lengths of the pistil and stamens, and these traits are not continuous. The morph phenotype is genetically linked to genes responsible for a unique system of self-incompatibility, termed heteromorphic self-incompatibility, that is, the pollen from a flower on one morph cannot fertilize another flower of the same morph.
Heterostylous plants having two flower morphs are termed "distylous". In one morph (termed "pin" or "longistylous" flower) the stamens are short and the pistils are long; in the second morph (termed "thrum" or "brevistylous" flower) the stamens are long and the pistils are short; the length of the pistil in one morph equals the length of the stamens in the second morph, and vice versa. Examples of distylous plants are the primrose and many other Primula species, buckwheat, flax and other Linum species, some Lythrum species, and many species of Cryptantha.
Heterostylous plants having three flower morphs are termed "tristylous". Each morph has two types of stamens. In one morph, the pistil is short, and the stamens are long and intermediate; in the second morph, the pistil is intermediate, and the stamens are short and long; in the third morph, the pistil is long, and the stamens are short and intermediate. Oxalis pes-caprae, purple loosestrife (Lythrum salicaria) and some other species of Lythrum are trimorphic.
The lengths of stamens and pistils in heterostylous flowers are adapted for pollination by different pollinators, or different body parts of the same pollinator. Thus, pollen originating in a long stamen will reach primarily long rather than short pistils, and vice versa. When pollen is transferred between two flowers of the same morph, no fertilization will take place, because of the self-incompatibility mechanism, unless such mechanism is broken by environmental factors such as flower age or temperature 
- Charles Darwin (1862). "On the two forms, or dimorphic condition, in the species of Primula, and on their remarkable sexual relations". Journal of the Proceedings of the Linnaean Society (Botany). 6 (22): 77–96. doi:10.1111/j.1095-8312.1862.tb01218.x.
- Charles Darwin (1877). The Different Forms of Flowers on Plants of the Same Species. London: Murray.
- P. H. Barrett, ed. (1977). The collected papers of Charles Darwin. Chicago University Press.
- Arthur Cronquist, Arthur H. Holmgren, Noel H. Holmgren, James L. Reveal & Patricia K. Holmgren (1984). Subclass Asteridae (except Asteraceae). Intermountain Flora; Vascular Plants of the Intermountain West, U.S.A. 4. The New York Botanical Garden. p. 224. ISBN 0-89327-248-5.CS1 maint: Uses authors parameter (link)
- Vernonica E. Franklin-Tong (2008). Self-Incompatibility in Flowering Plants Evolution, Diversity, and Mechanisms.