Begin by understanding the endosymbiotic theory, which proposes that certain organelles within eukaryotic cells, specifically mitochondria and chloroplasts, originated from free-living prokaryotes. These prokaryotes were engulfed by ancestral eukaryotic cells, leading to a symbiotic relationship.