An early ancestor of eukaryotic cells (a host cell) engulfed an oxygen-using nonphotosynthetic prokaryotic cell. Eventually, the engulfed cell formed a relationship with the host cell in which it was enclosed, becoming an endosymbiont (a cell living within another cell). Indeed, throughout evolution, the host cell and its endosymbiont merged into a single organism, a eukaryotic cell with the endosymbiont having become a mitochondrion. At least one of these cells may have then taken up a photosynthetic prokaryote, becoming the ancestor of eukaryotic cells that contain chloroplasts.