Schematic view of plastid evolution in the history of eukaryotes. The various endosymbiotic events that gave rise to the current diversity and distribution of plastids involve divergences and reticulations whose complexity has come to resemble an electronic circuit diagram. Endosymbiosis events are boxed, and the lines are coloured to distinguish lineages with no plastid (grey), plastids from the green algal lineage (green) or the red algal lineage (red). At the bottom is the single primary endosymbiosis leading to three lineages (glaucophytes, red algae and green algae). On the lower right, a discrete secondary endosymbiotic event within the euglenids led to their plastid. On the lower left, a red alga was taken up in the ancestor of chromalveolates. From this ancestor, haptophytes and cryptomonads (as well as their non-photosynthetic relatives like katablepharids and telonemids) first diverged. After the divergence of the rhizarian lineage, the plastid appears to have been lost, but in two subgroups of Rhizaria, photosynthesis was regained: in the chlorarachniophytes by secondary endosymbiosis with a green alga, and in Paulinella by taking up a cyanobacterium (many other rhizarian lineages remain non-photosynthetic). At the top left, the stramenopiles diverged from alveolates, where plastids were lost in ciliates and predominantly became non-photosynthetic in the apicomplexan lineage. At the top right, four different events of plastid replacement are shown in dinoflagellates, involving a diatom, haptophyte, cryptomonad (three cases of tertiary endosymbiosis) and green alga (a serial secondary endosymbiosis). Most of the lineages shown have many members or relatives that are non-photosynthetic, but these have not all been shown for the sake of clarity.