A theory by which prokaryotes gave rise to the first eukaryotic cells. Chloroplasts in plants and mitochondrion in other eukaryotes are believed to have once been prokaryotic organisms engulfed by larger prokaryotic cells.