STEP-BY-STEP ANSWER:
Step 1: Understand that endosymbiosis is a process where one organism lives inside another, forming a mutually beneficial relationship.
Step 2: Recognize that ancestral protists engulfed other prokaryotic cells, which then became integrated as organelles.
Step 3: Identify that the engulfed bacteria evolved into mitochondria for energy production and, in photosynthetic lineages, evolved into chloroplasts for capturing sunlight.
Step 4: Conclude that this process was essential for the evolution and diversification of protists, enabling them to adapt to various ecological roles.
Final Answer: Protists acquired mitochondria and chloroplasts through the process of endosymbiosis, where engulfed prokaryotic cells evolved into these vital organelles.