Rainbows are created through the refraction, dispersion, and reflection of sunlight in raindrops. Each raindrop functions as a tiny prism, separating sunlight into its component colours and forming the colourful arc we see in the sky.