Answer and Explanation:
The Endosymbiotic Theory states that mitochondria and chloroplasts were, at some point, individual free-living cells. Throughout time, they were either consumed or parasites that ended up inside a host cell. Then, this became a beneficial - symbiotic - relationship, hence the name "endosymbiotic" theory.
There are pieces of evidence that support this theory, for example: