Mitochondria and chloroplasts likely evolved from engulfed bacteria that once lived as independent organisms. ... Eukaryotic cells containing mitochondria then engulfed photosynthetic bacteria, which evolved to become specialized chloroplast organelles.
The answer is prokaryotes