The response that BEST explains why rainbows only appear when there is rain and sun is:
The combination of light and water creates a prismatic effect.
This is because rainbows are formed when sunlight is refracted, reflected, and dispersed through water droplets in the atmosphere, creating the spectrum of colors we see in a rainbow.