How do we get a rainbow?

A rainbow is natural spectrum appearing in the sky just after a rain shower. It is caused by dispersion of sunlight by tiny water droplets present in atmosphere. These water droplets act like small prisms.